Forum Replies Created
-
AuthorPosts
-
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”><?xml version="1.0"?><List> <type>mailbox</type> <NumDocs>2</NumDocs> <Docs> <DocID>39fece003lr95hpt000068qs</DocID> <DocTimestamp>2008-11-07 10:50:10.111</DocTimestamp> <TypeName>ICSCSRin</TypeName> <SenderID>39fece003aak28cs00002ho7</SenderID> <ReceiverID>39fece003aajfbda00002hmr</ReceiverID> <SenderCorp>SWC2SCA_REC_GP1_PRE</SenderCorp> <SenderUnit></SenderUnit> <ReceiverCorp>SWC2SCA_GP1_PRE</ReceiverCorp> <ReceiverUnit></ReceiverUnit> <SenderName>SWC2SCA_REC_GP1_PRE</SenderName> <ReceiverName>SWC2SCA_GP1_PRE</ReceiverName> <RoutingStatus>POLLABLE</RoutingStatus> <UserStatus>Saved</UserStatus> <NativeID>08110710501YB7</NativeID> <GroupID></GroupID> <ConversationID></ConversationID> <DocumentError>true</DocumentError> <originalSender>SWC</originalSender> <originalReceiver>SWCSCA</originalReceiver> <attributes> <commitParms></commitParms> <APRF>XML</APRF> <CreatedBy>ICSCSR</CreatedBy> <ExtractionDateTime></ExtractionDateTime> <ILOG></ILOG> <SERVICEREF>3435043809322527</SERVICEREF> <TNdocRef></TNdocRef> <TNpartName></TNpartName> <TYPE>XML</TYPE> <commitSvc>gxs.icscsr.util:setICSdocStatus</commitSvc> <fileParms></fileParms> <fileSize>1036</fileSize> <fileSvc></fileSvc> </attributes> </Docs> <Docs> <DocID>39fece003lr95e0c000068qk</DocID> <DocTimestamp>2008-11-07 10:50:06.222</DocTimestamp> <TypeName>ICSCSRin</TypeName> <SenderID>39fece003aak28cs00002ho7</SenderID> <ReceiverID>39fece003aajfbda00002hmr</ReceiverID> <SenderCorp>SWC2SCA_REC_GP1_PRE</SenderCorp> <SenderUnit></SenderUnit> <ReceiverCorp>SWC2SCA_GP1_PRE</ReceiverCorp> <ReceiverUnit></ReceiverUnit> <SenderName>SWC2SCA_REC_GP1_PRE</SenderName> <ReceiverName>SWC2SCA_GP1_PRE</ReceiverName> <RoutingStatus>POLLABLE</RoutingStatus> <UserStatus>Saved</UserStatus> <NativeID>081107105016DO</NativeID> <GroupID></GroupID> <ConversationID></ConversationID> <DocumentError>true</DocumentError> <originalSender>SWC</originalSender> <originalReceiver>SWCSCA</originalReceiver> <attributes> <commitParms></commitParms> <APRF>XML</APRF> <CreatedBy>ICSCSR</CreatedBy> <ExtractionDateTime></ExtractionDateTime> <ILOG></ILOG> <SERVICEREF>3435043805709813</SERVICEREF> <TNdocRef></TNdocRef> <TNpartName></TNpartName> <TYPE>XML</TYPE> <commitSvc>gxs.icscsr.util:setICSdocStatus</commitSvc> <fileParms></fileParms> <fileSize>1045</fileSize> <fileSvc></fileSvc> </attributes> </Docs></List></return>
</ser-root:mailboxListResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
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.
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)”.November 9, 2008 at 5:23 AM in reply to: Calling a 1 Way Service [wcf] through BizTalk. Problem #21171Is your send port one-way or two-way? You need to use a one-way send port to call a one-way service.
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:
&lt;userName&gt;YourUserName&lt;/userName&
amp;gt;&lt;password&gt;**&lt;/password&gt;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
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?
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?
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
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.
I added the configuration information to the BTSNTSvc.exe.config file and it seems to be working.
Is this the best approach?
Thanks
Byron
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.
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.)?
November 4, 2008 at 4:54 PM in reply to: Regarding deploying a dll in two different biztalk applications #21147All 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.
November 4, 2008 at 6:42 AM in reply to: question with windows authentication with BTS server #21143Thanks Ruselw I will check that link
-
AuthorPosts