community-content

Forum Replies Created

Viewing 15 posts - 3,526 through 3,540 (of 9,648 total)
  • Author
    Posts
  • in reply to: How to config/costom a WS Security to SOAP header #21174

    I tried Fiddler, but it does not support https. does MS SDK support https?

    Can you take a look for what is the problem in my request and reasponse? I got following logs from service.

     Below are the request I see in our logs followed by the response that our logs show was sent: 

    <s:Envelope xmlns:s=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:u=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd“>

                <s:Header>

                            <o:Security s:mustUnderstand=”1″ xmlns:o=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd“>

                                        <u:Timestamp u:Id=”_0″>
                                                    <u:Created>2008-11-07T13:14:28.296Z</u:Created>
                                                    <u:Expires>2008-11-07T13:19:28.296Z</u:Expires>
                                        </u:Timestamp>
                                        <o:UsernameToken u:Id=”uuid-6721b428-ba4e-4814-940d-c6abae2d4a0f-9″>
                                                    <o:Username>[email protected]</o:Username>
                                                    <o:Password o:Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>pass</o:Password>
                                        </o:UsernameToken>
                            </o:Security>

                </s:Header>
                <s:Body>

                            <ns0:mailboxList xmlns:ns0=”http://icslinux7/gxs.ws.docManagement“>

                                        <userid>SWCSCA</userid>
                                        <partnerid/>
                                        <DocTypeName/>
                                        <aprf/>
                                        <snrf/>
                                        <TNdocID/>
                                        <type>mailbox</type>
                                        <listType>POLLABLE</listType>
                                        <MaxReturned>2</MaxReturned>
                            </ns0:mailboxList>
                </s:Body>
    </s:Envelope>

     

    Response:

    <?xml version=”1.0″ encoding=”UTF-8″?>

    <SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=”http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” SOAP-ENV:encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/“>

                <SOAP-ENV:Body>

                            <ser-root:mailboxListResponse xmlns:ser-root=”http://icslinux7/gxs.ws.docManagement” SOAP-ENC:root=”1″>

                                        <return xsi:type=”xsd:string”>&lt;?xml version=&quot;1.0&quot;?&gt;&lt;List&gt;  &lt;type&gt;mailbox&lt;/type&gt;  &lt;NumDocs&gt;2&lt;/NumDocs&gt;  &lt;Docs&gt;    &lt;DocID&gt;39fece003lr95hpt000068qs&lt;/DocID&gt;    &lt;DocTimestamp&gt;2008-11-07 10:50:10.111&lt;/DocTimestamp&gt;    &lt;TypeName&gt;ICSCSRin&lt;/TypeName&gt;    &lt;SenderID&gt;39fece003aak28cs00002ho7&lt;/SenderID&gt;    &lt;ReceiverID&gt;39fece003aajfbda00002hmr&lt;/ReceiverID&gt;    &lt;SenderCorp&gt;SWC2SCA_REC_GP1_PRE&lt;/SenderCorp&gt;    &lt;SenderUnit&gt;&lt;/SenderUnit&gt;    &lt;ReceiverCorp&gt;SWC2SCA_GP1_PRE&lt;/ReceiverCorp&gt;    &lt;ReceiverUnit&gt;&lt;/ReceiverUnit&gt;    &lt;SenderName&gt;SWC2SCA_REC_GP1_PRE&lt;/SenderName&gt;    &lt;ReceiverName&gt;SWC2SCA_GP1_PRE&lt;/ReceiverName&gt;    &lt;RoutingStatus&gt;POLLABLE&lt;/RoutingStatus&gt;    &lt;UserStatus&gt;Saved&lt;/UserStatus&gt;    &lt;NativeID&gt;08110710501YB7&lt;/NativeID&gt;    &lt;GroupID&gt;&lt;/GroupID&gt;    &lt;ConversationID&gt;&lt;/ConversationID&gt;    &lt;DocumentError&gt;true&lt;/DocumentError&gt;    &lt;originalSender&gt;SWC&lt;/originalSender&gt;    &lt;originalReceiver&gt;SWCSCA&lt;/originalReceiver&gt;    &lt;attributes&gt;      &lt;commitParms&gt;&lt;/commitParms&gt;      &lt;APRF&gt;XML&lt;/APRF&gt;      &lt;CreatedBy&gt;ICSCSR&lt;/CreatedBy&gt;      &lt;ExtractionDateTime&gt;&lt;/ExtractionDateTime&gt;      &lt;ILOG&gt;&lt;/ILOG&gt;      &lt;SERVICEREF&gt;3435043809322527&lt;/SERVICEREF&gt;      &lt;TNdocRef&gt;&lt;/TNdocRef&gt;      &lt;TNpartName&gt;&lt;/TNpartName&gt;      &lt;TYPE&gt;XML&lt;/TYPE&gt;      &lt;commitSvc&gt;gxs.icscsr.util:setICSdocStatus&lt;/commitSvc&gt;      &lt;fileParms&gt;&lt;/fileParms&gt;      &lt;fileSize&gt;1036&lt;/fileSize&gt;      &lt;fileSvc&gt;&lt;/fileSvc&gt;    &lt;/attributes&gt;  &lt;/Docs&gt;  &lt;Docs&gt;    &lt;DocID&gt;39fece003lr95e0c000068qk&lt;/DocID&gt;    &lt;DocTimestamp&gt;2008-11-07 10:50:06.222&lt;/DocTimestamp&gt;    &lt;TypeName&gt;ICSCSRin&lt;/TypeName&gt;    &lt;SenderID&gt;39fece003aak28cs00002ho7&lt;/SenderID&gt;    &lt;ReceiverID&gt;39fece003aajfbda00002hmr&lt;/ReceiverID&gt;    &lt;SenderCorp&gt;SWC2SCA_REC_GP1_PRE&lt;/SenderCorp&gt;    &lt;SenderUnit&gt;&lt;/SenderUnit&gt;    &lt;ReceiverCorp&gt;SWC2SCA_GP1_PRE&lt;/ReceiverCorp&gt;    &lt;ReceiverUnit&gt;&lt;/ReceiverUnit&gt;    &lt;SenderName&gt;SWC2SCA_REC_GP1_PRE&lt;/SenderName&gt;    &lt;ReceiverName&gt;SWC2SCA_GP1_PRE&lt;/ReceiverName&gt;    &lt;RoutingStatus&gt;POLLABLE&lt;/RoutingStatus&gt;    &lt;UserStatus&gt;Saved&lt;/UserStatus&gt;    &lt;NativeID&gt;081107105016DO&lt;/NativeID&gt;    &lt;GroupID&gt;&lt;/GroupID&gt;    &lt;ConversationID&gt;&lt;/ConversationID&gt;    &lt;DocumentError&gt;true&lt;/DocumentError&gt;    &lt;originalSender&gt;SWC&lt;/originalSender&gt;    &lt;originalReceiver&gt;SWCSCA&lt;/originalReceiver&gt;    &lt;attributes&gt;      &lt;commitParms&gt;&lt;/commitParms&gt;      &lt;APRF&gt;XML&lt;/APRF&gt;      &lt;CreatedBy&gt;ICSCSR&lt;/CreatedBy&gt;      &lt;ExtractionDateTime&gt;&lt;/ExtractionDateTime&gt;      &lt;ILOG&gt;&lt;/ILOG&gt;      &lt;SERVICEREF&gt;3435043805709813&lt;/SERVICEREF&gt;      &lt;TNdocRef&gt;&lt;/TNdocRef&gt;      &lt;TNpartName&gt;&lt;/TNpartName&gt;      &lt;TYPE&gt;XML&lt;/TYPE&gt;      &lt;commitSvc&gt;gxs.icscsr.util:setICSdocStatus&lt;/commitSvc&gt;      &lt;fileParms&gt;&lt;/fileParms&gt;      &lt;fileSize&gt;1045&lt;/fileSize&gt;      &lt;fileSvc&gt;&lt;/fileSvc&gt;    &lt;/attributes&gt;  &lt;/Docs&gt;&lt;/List&gt;</return>

                            </ser-root:mailboxListResponse>

                </SOAP-ENV:Body>

    </SOAP-ENV:Envelope>

     

    in reply to: How to config/costom a WS Security to SOAP header #21173

    It looks like the response message does not contain the security headers.  This could happen if the service does not return the response correctly, or if an exception occurs in the service and the service returns an unsecured fault.  If you have access to the serice, you can attach a debugger or use System.Diagnostics.Tracing.WriteLine to determine whether an exception is occurring.  Otherwise, you can use a trace tool to tell what is happening.  I would first try Fiddler (http://www.fiddlertool.com/fiddler/) because it is easier to use than WCF tracing.  However, it doesn’t always like to capture messages coming from BizTalk, so you might not be able to get it to work.  In that case WCF tracing is the way to go.  You can download the WCF tools with the Windows SDK:  http://msdn.microsoft.com/en-us/windowsvista/bb980924.aspx.

    in reply to: How to config/costom a WS Security to SOAP header #21172

     I have successful configure the security usernameToken in SOAP header. Based on server log, request is OK and response has been sent correctly. However I did not receive this response properly. I got an warning every time as following. Do you know what is this meaning? how to check why the respose is not received in sent port.

    The adapter failed to transmit message going to send port “WcfSendPort_gxs_ws_docManagementService_gxs_ws_docManagementPort0_Custom” with URL “https://ws.betagrid.gxs.com/smg/ws_comm/mailboxList“. It will be retransmitted after the retry interval specified for this Send Port. Details:”System.ServiceModel.Security.MessageSecurityException: Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties.   This can occur if the service is configured for security and the client is not using security.

    Server stack trace:
       at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)”.

     

    in reply to: Calling a 1 Way Service [wcf] through BizTalk. Problem #21171

    Is your send port one-way or two-way?  You need to use a one-way send port to call a one-way service.

    in reply to: Configuring MSMQ adapter from binding file #21169

    I got an answer from over at StackOverflow …

     

    http://stackoverflow.com/questions/269725/biztalk-msmq-userid-and-password-in-a-bindings-file#270409

    from David Hall …

    What you are looking for in your binding file is the
    <TransportTypeData> element of your MSMQ send port. This contains
    all of your adapter config information as encoded data.

    Within that element there is a userName and password section. The
    password will be masked out with asterisks. Put the password for the
    environment there and import the binding.

    The part of the encoded data with username and password will look something like below:

    &amp;lt;userName&amp;gt;YourUserName&amp;lt;/userName&
    amp;gt;&amp;lt;password&amp;gt;**&amp;lt;/password&amp;gt;

    in reply to: Access int value of enumeration in a message #21165

    Xml schema is not able to describe an enumeration in terms of name and value like C#. It only has the string value.

    The EnumerationValue in the schema above is only an annotation (information only) it is generated and consumed by Microsoft specific serialization software.

    If you use the number 1 in your Xml it will be invalid according to the schema, which only allows the value “Person”. If you wish to use the values 1 and “Person” you will need to change the element definition and not use an enumeration. You will also need software to create and consume this Xml that is aware of the special nature of the data

    in reply to: How can I account for the overpunch character? #21162

     I have the same problem and I have not been able to figure out if this is possible. Does anyone have a function written for this?

    in reply to: DB2-AS400 to SQL 2005 Adapter #21161

     I’d probably just cast ‘Planar Conduit’ to the elemental plane of fire and drop about 18d10 in fire damage on the unit…maybe generate a lava field in the area just to be sure. Why did we have to grow up Jud?

    in reply to: Promoted property issue when debatching XML data #21160

    Hi Russell,

    Thanks for the insight.

    it seems I had a problem with the namespaceing in the xml. 

    Also I forgot to set the Element FormDefault property to Qualified in the document schema.

    It now all work fine.

    Cheers,

    Walid

    in reply to: Config file for Custom Pipeline / DLL #21157

     I think you would be better off having this as properties of the pipeline component that you can configure in the Send Port or Receive Location properties.

    in reply to: Config file for Custom Pipeline / DLL #21151

    I added the configuration information to the BTSNTSvc.exe.config file and it seems to be working.

     

    Is this the best approach?

     

    Thanks

    Byron

    in reply to: Promoted property issue when debatching XML data #21149

    Strange.  If the debatching is working, I would assume the property promotion should work too.  Here’s a test that might shed some light on things.  Set up a file receive location with the XML receive pipeline.  Drop in an instance of the record schema and see if the properties get promoted.  This will isolate the property promotion issue from the debatching so you will have a better idea of where the issue lies.

    in reply to: Error While Invoking Web service thru orchestration #21148

    It looks like the web service received the message and encountered an error while processing it.  I can tell that by the “(500) Internal Server Error” message in the log.  Do you have any way to debug the web service (tracing, attaching a debugger, etc.)?

    All the DLLs go into the same database, so you can’t deploy the same one to two different apps.  You can, however, deploy the DLL to one application and add a reference to the other application to make the DLL avaliable.

    in reply to: question with windows authentication with BTS server #21143

     Thanks Ruselw I will check that link

Viewing 15 posts - 3,526 through 3,540 (of 9,648 total)