How to config/costom a WS Security to SOAP header

Home Page Forums BizTalk 2004 – BizTalk 2010 How to config/costom a WS Security to SOAP header

Viewing 1 reply thread
  • Author
    Posts
    • #21102

      Please help me on help for how to config/costom a WS Security to SOAP header

      I would like to add following UsernameToken setting to SOAP header in BizTalk.

      Currently, I tried to use send port as SOAP configuration for BASIC as username/password. Bit it is not worked

      <wsse:Security xmlns:ds=’http://www.w3.org/2000/09/xmldsig#&#8217;

            xmlns:wsse=’http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&#8217;

            xmlns:wsu=’http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&#8217;

            xmlns:xenc=’http://www.w3.org/2001/04/xmlenc#’&gt;

      <wsse:UsernameToken>

      <wsse:Username>[email protected]</wsse:Username>

      <wsse:Password>gxsadmin</wsse:Password></wsse:UsernameToken>

      </wsse:Security>

       

    • #21109

      The SOAP adapter does not support WS-Security.  You can use the WCF-WSHttp adapter.  Here is a link on configuring a WCF-WSHttp send port:  http://msdn.microsoft.com/en-us/library/bb245939.aspx.

      • #21112

        Thanks for your comment.

        I read the MSDN document. But still not find how to set usernameToken in it.

        Doese WCF-WSHttp support UsernameToken as tandard feature, or I need to write some custom map.

        • #21115

          No, you shouldn’t need to write anything custom.  The adapter should be able to handle it.  In the BizTalk admin console, open up the configuration for your send port, and click the Configure button for the WCF-WSHttp adapter.  The settings you need should be under the Security tab.  I believe you would set the security mode to Message and the message client credential type to userName.  Then, down at the bottom of the screen, click the Edit button to enter the username and password. 

          • #21132

            Thank you very much for your great help.

            I have tried on WSHttp setting. Howver it still not working now. What I set is following

            1. Gerneral tab: Address https://ws.betagrid.gxs.com:443/smg/ws_comm/mailboxList

            2. Security tab:

            Security Mode = TransportWithMesssageCredental

            Message Client Credential type = user name

            Alogorithm suit = Basic256

            user name=[email protected]

            password = password

            Sample of SOAP is expected as following:

            [SOAP] request to https://ws.tradinggrid.gxs.com:443/smg/ws_comm/getLogEntries

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

            <soap:Envelope xmlns:n=’http://icslinux7/gxs.ws.docManagement&#8217;

                  xmlns:soap=’http://schemas.xmlsoap.org/soap/envelope/’&gt;

            <soap:Header>

            <wsse:Security xmlns:ds=’http://www.w3.org/2000/09/xmldsig#&#8217;

                  xmlns:wsse=’http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&#8217;

                  xmlns:wsu=’http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&#8217;

                  xmlns:xenc=’http://www.w3.org/2001/04/xmlenc#’&gt;

            <wsse:UsernameToken>

            <wsse:Username>[email protected]</wsse:Username>

            <wsse:Password>gxsadmin</wsse:Password></wsse:UsernameToken>

            </wsse:Security>

            </soap:Header>

            <soap:Body soap:encodingStyle=’http://schemas.xmlsoap.org/soap/encoding/’&gt;

            <n:getLogEntries>

            <docID>36sec1003thq73bv0000d0ye</docID>

            </n:getLogEntries></soap:Body>

            </soap:Envelope>

            Did I set the right parameter?

            • #21136

              What error are you getting?  The way to debug this is to use a tracing tool to view the SOAP envelope that BizTalk is sending.  You might be able to use Fiddler for this, or you could enable WCF tracing.  Check out this link for some instructions on WCF tracing:  http://blogs.msdn.com/madhuponduru/archive/2006/05/18/601458.aspx.  You would need to enable the tracing in the BizTalk config file (BTSNTSVC.exe.config).

              • #21138

                 Sorry, my VS did not have SvcConfigEditor. what i did is to check the event log of BizTalk as following.

                There is a warning message as following:

                ======
                The adapter failed to transmit message going to send port “GXS_WebService_MailList_1.0.0.0_Test_GXS_WebService.Orchestration_Port_GXS_WebService_1abe5266517474a2” with URL “https://ws.betagrid.gxs.com:443/smg/ws_comm/mailboxList“. It will be retransmitted after the retry interval specified for this Send Port. Details:”System.ServiceModel.ProtocolException: Content Type application/soap+xml; charset=utf-8 was not supported by service https://ws.betagrid.gxs.com/smg/ws_comm/mailboxList.  The client and service bindings may be mismatched. —> System.Net.WebException: The remote server returned an error: (415) Unsupported Media Type.
                   at System.Net.HttpWebRequest.GetResponse()
                   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
                   — End of inner exception stack trace —

                Server stack trace:
                   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
                   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
                   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
                   at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
                   at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
                   at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
                   at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
                   at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
                   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
                   at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
                   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
                   at System.ServiceModel.Channels.CommunicationObject.Open()

                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.ICommunicationObject.Open()
                   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.GetChannel[TChannel](IBaseMessage bizTalkMessage, ChannelFactory`1& cachedFactory)
                   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)”.

                ======

                • #21139

                  The service is expecting Soap 1.1 (Content Type: text\xml), where the WsHttp binding uses Soap 1.2 (Content Type application/soap+xml)

                  You may like to use the customBinding, instead of WsHttp
                  On Binding Tab, Binding Type = customBinding, textMessageEncoding -> messageVersion = Soap11

                  A big gotcha will be the message level security, you will need to right click CustomBindingElement -> Add extension -> security. This is where it gets tricky. You are dealing directly with the security extension ( the WsHttp binding hides most of this).

                  Might be easier if you ask the service provider to support Soap1.2

                  • #21140

                     I did the change to use WCF-Custom now. When I try to set security, I get tricky. Not to know how to set up them, since I canot find out the same field for WCF-WSHttp security setting.

                    can you let me where “security mode” and “Message Client Credential type” setting.

                    • #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)”.

                       

                      • #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.

                      • #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>

                         

                      • #21175

                        Yes, MS SDK does support HTTPS, but it looks like you don’t need it.  Your logs give you just what you need: the request/response envelopes.  I do see something interesting in the response.  It does not contain any headers.  The error message complains that there were no security headers in the response, so I think that is the issue.  I don’t know what the ws-security spec says about response headers, but it looks like BizTalk is expecting them.  I would do some analysis to get a better understanding of ws-security.  Do some tests and look at the request/response envelopes in the log, paying attention to the headers.  One good test would be to call the service from a non-BizTalk client.  Another wuld be to create a test WCF service that uses ws-security and call it.  These should shed some light on things.

                      • #21176

                         Thank you very much for you great hlpe.

                        What is the way to let BizTalk server just receive responase and have no expect. is that possible.

                        I am using WSE3.0 and set the I did the simple setting as following, does this impect?

                        1) Enabling WSE using Visual Studio

                        1.     Install WSE 3.0. [download from Microsoft.com]

                        2.     Create a new project in visual studio 2005

                        3.     Right Click on the project folder on the solution explorer. , click on the WSE 3.0 settings menu option, it should be the last item.

                        4.     A Tab window opens.        

                        5.     On the General Tab, check the Enable this project for Web Service Enhancement.

                        6.     Click ok.

                        7.     This should add WSE 3.0 entries to your Configuration  files

                        2) follow is my xsd for response does this impact?

                         <?xml version=”1.0″ encoding=”utf-16″ ?>

                        <xs:schema xmlns:tns=”http://icslinux7/gxs.ws.docManagement xmlns:b=”http://schemas.microsoft.com/BizTalk/2003 targetNamespace=”http://icslinux7/gxs.ws.docManagement id=”_mailboxListOutput xmlns:xs=”http://www.w3.org/2001/XMLSchema>

                        3) Following is my binding setting for application, does this empect?

                        <?xml version=”1.0″ encoding=”utf-8″?>
                        <BindingInfo xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” Assembly=”Microsoft.BizTalk.Deployment, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ Version=”3.5.1.0″ BindingStatus=”FullyBound” BoundEndpoints=”3″ TotalEndpoints=”3″>
                          <Timestamp>2008-11-08T00:01:59.078125+09:00</Timestamp>
                          <ModuleRefCollection>
                            <ModuleRef Name=”[Application:GXS_Sample]” Version=”” Culture=”” PublicKeyToken=”” FullName=”[Application:GXS_Sample], Version=, Culture=, PublicKeyToken=”>
                              <Services />
                              <TrackedSchemas>
                                <Schema FullName=”GXS_Sample.gxs_ws_docManagementService_localhost_gxs_ws_docManagement_mailboxList” RootName=”typeOnlySchema” AssemblyQualifiedName=”GXS_Sample.gxs_ws_docManagementService_localhost_gxs_ws_docManagement_mailboxList,GXS_Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3cfefcf1dd7efb09″ AlwaysTrackAllProperties=”false”>
                                  <TrackedPropertyNames />
                                </Schema>
                                <Schema FullName=”GXS_Sample.Schema_Input” RootName=”Root” AssemblyQualifiedName=”GXS_Sample.Schema_Input,GXS_Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3cfefcf1dd7efb09″ AlwaysTrackAllProperties=”false”>
                                  <TrackedPropertyNames />
                                </Schema>
                                <Schema FullName=”GXS_Sample.gxs_ws_docManagementService_icslinux7_gxs_ws_docManagement” RootName=”mailboxList” AssemblyQualifiedName=”GXS_Sample.gxs_ws_docManagementService_icslinux7_gxs_ws_docManagement,GXS_Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3cfefcf1dd7efb09″ AlwaysTrackAllProperties=”false”>
                                  <TrackedPropertyNames />
                                </Schema>
                                <Schema FullName=”GXS_Sample.gxs_ws_docManagementService_icslinux7_gxs_ws_docManagement_1″ RootName=”mailboxListResponse” AssemblyQualifiedName=”GXS_Sample.gxs_ws_docManagementService_icslinux7_gxs_ws_docManagement_1,GXS_Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3cfefcf1dd7efb09″ AlwaysTrackAllProperties=”false”>
                                  <TrackedPropertyNames />
                                </Schema>
                              </TrackedSchemas>
                            </ModuleRef>
                            <ModuleRef Name=”GXS_Sample” Version=”1.0.0.0″ Culture=”neutral” PublicKeyToken=”3cfefcf1dd7efb09″ FullName=”GXS_Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3cfefcf1dd7efb09″>
                              <Services>
                                <Service Name=”GXS_Sample.gxs_ws_docManagementServiceClient” State=”Unenlisted” TrackingOption=”ServiceStartEnd MessageSendReceive OrchestrationEvents”>
                                  <Ports>
                                    <Port Name=”Port_File” Modifier=”2″ BindingOption=”1″>
                                      <SendPortRef xsi:nil=”true” />
                                      <DistributionListRef xsi:nil=”true” />
                                      <ReceivePortRef Name=”%u53d7%u4fe1%u30dd%u30fc%u30c8_GXS” />
                                    </Port>
                                    <Port Name=”Port_GXS_WebService” Modifier=”1″ BindingOption=”1″>
                                      <SendPortRef Name=”WcfSendPort_gxs_ws_docManagementService_gxs_ws_docManagementPort0_Custom” />
                                      <DistributionListRef xsi:nil=”true” />
                                      <ReceivePortRef xsi:nil=”true” />
                                    </Port>
                                    <Port Name=”Port_Out” Modifier=”1″ BindingOption=”1″>
                                      <SendPortRef Name=”%u9001%u4fe1%u30dd%u30fc%u30c8_GXS” />
                                      <DistributionListRef xsi:nil=”true” />
                                      <ReceivePortRef xsi:nil=”true” />
                                    </Port>
                                  </Ports>
                                  <Roles />
                                  <Host Name=”BizTalkServerApplication” NTGroupName=”BizTalk Application Users” Type=”1″ Trusted=”false” />
                                </Service>
                              </Services>
                              <TrackedSchemas />
                            </ModuleRef>
                          </ModuleRefCollection>
                          <SendPortCollection>
                            <SendPort Name=”%u9001%u4fe1%u30dd%u30fc%u30c8_GXS” IsStatic=”true” IsTwoWay=”false” BindingOption=”1″>
                              <Description xsi:nil=”true” />
                              <TransmitPipeline Name=”Microsoft.BizTalk.DefaultPipelines.PassThruTransmit” FullyQualifiedName=”Microsoft.BizTalk.DefaultPipelines.PassThruTransmit, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ Type=”2″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
                              <PrimaryTransport>
                                <Address>E:\Shared\GXS_Sample\%u9001%u4fe1%u30d5%u30a9%u30eb%u30c0\%MessageID%.xml</Address>
                                <TransportType Name=”FILE” Capabilities=”11″ ConfigurationClsid=”5e49e3a6-b4fc-4077-b44c-22f34a242fdb” />
                                <TransportTypeData>&lt;CustomProps&gt;&lt;UseTempFileOnWrite vt=”11″&gt;0&lt;/UseTempFileOnWrite&gt;&lt;CopyMode vt=”19″&gt;1&lt;/CopyMode&gt;&lt;FileName vt=”8″&gt;%MessageID%.xml&lt;/FileName&gt;&lt;AllowCacheOnWrite vt=”11″&gt;0&lt;/AllowCacheOnWrite&gt;&lt;/CustomProps&gt;</TransportTypeData>
                                <RetryCount>3</RetryCount>
                                <RetryInterval>5</RetryInterval>
                                <ServiceWindowEnabled>false</ServiceWindowEnabled>
                                <FromTime>2000-01-01T15:00:00</FromTime>
                                <ToTime>2000-01-01T14:59:59</ToTime>
                                <Primary>true</Primary>
                                <OrderedDelivery>false</OrderedDelivery>
                                <DeliveryNotification>1</DeliveryNotification>
                                <SendHandler Name=”BizTalkServerApplication” HostTrusted=”false”>
                                  <TransportType Name=”FILE” Capabilities=”11″ ConfigurationClsid=”5e49e3a6-b4fc-4077-b44c-22f34a242fdb” />
                                </SendHandler>
                              </PrimaryTransport>
                              <SecondaryTransport>
                                <Address />
                                <RetryCount>3</RetryCount>
                                <RetryInterval>5</RetryInterval>
                                <ServiceWindowEnabled>false</ServiceWindowEnabled>
                                <FromTime>2000-01-01T15:00:00</FromTime>
                                <ToTime>2000-01-01T14:59:59</ToTime>
                                <Primary>false</Primary>
                                <OrderedDelivery>false</OrderedDelivery>
                                <DeliveryNotification>1</DeliveryNotification>
                                <SendHandler xsi:nil=”true” />
                              </SecondaryTransport>
                              <ReceivePipelineData xsi:nil=”true” />
                              <Tracking>0</Tracking>
                              <Filter />
                              <Transforms />
                              <OrderedDelivery>false</OrderedDelivery>
                              <Priority>5</Priority>
                              <StopSendingOnFailure>false</StopSendingOnFailure>
                              <RouteFailedMessage>false</RouteFailedMessage>
                              <ApplicationName>GXS_Sample</ApplicationName>
                            </SendPort>
                            <SendPort Name=”WcfSendPort_gxs_ws_docManagementService_gxs_ws_docManagementPort0″ IsStatic=”true” IsTwoWay=”true” BindingOption=”0″>
                              <Description>service “gxs_ws_docManagementService” port “gxs_ws_docManagementPort0″</Description>
                              <TransmitPipeline Name=”Microsoft.BizTalk.DefaultPipelines.PassThruTransmit” FullyQualifiedName=”Microsoft.BizTalk.DefaultPipelines.PassThruTransmit, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ Type=”2″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
                              <PrimaryTransport>
                                <Address>https://ws.tradinggrid.gxs.com/smg/ws_comm/mailboxList</Address&gt;
                                <TransportType Name=”WCF-BasicHttp” Capabilities=”899″ ConfigurationClsid=”467c1a52-373f-4f09-9008-27af6b985f14″ />
                                <TransportTypeData>&lt;CustomProps&gt;&lt;ServiceCertificate vt=”8″ /&gt;&lt;UseSSO vt=”11″&gt;0&lt;/UseSSO&gt;&lt;InboundBodyPathExpression vt=”8″ /&gt;&lt;MessageClientCredentialType vt=”8″&gt;UserName&lt;/MessageClientCredentialType&gt;&lt;SendTimeout vt=”8″&gt;00:01:00&lt;/SendTimeout&gt;&lt;OutboundXmlTemplate vt=”8″&gt;&amp;lt;bts-msg-body xmlns=”http://www.microsoft.com/schemas/bts2007” encoding=”xml”/&amp;gt;&lt;/OutboundXmlTemplate&gt;&lt;OpenTimeout vt=”8″&gt;00:01:00&lt;/OpenTimeout&gt;&lt;InboundBodyLocation vt=”8″&gt;UseBodyElement&lt;/InboundBodyLocation&gt;&lt;AlgorithmSuite vt=”8″&gt;Basic256&lt;/AlgorithmSuite&gt;&lt;SecurityMode vt=”8″&gt;Transport&lt;/SecurityMode&gt;&lt;TransportClientCredentialType vt=”8″&gt;Basic&lt;/TransportClientCredentialType&gt;&lt;AffiliateApplicationName vt=”8″ /&gt;&lt;ClientCertificate vt=”8″ /&gt;&lt;ProxyUserName vt=”8″ /&gt;&lt;MaxReceivedMessageSize vt=”3″&gt;65536&lt;/MaxReceivedMessageSize&gt;&lt;TextEncoding vt=”8″&gt;utf-8&lt;/TextEncoding&gt;&lt;StaticAction vt=”8″&gt;&amp;lt;BtsActionMapping xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&amp;gt;
                          &amp;lt;Operation Name=”mailboxList” Action=”http://icslinux7/gxs.ws.docManagement/mailboxList” /&amp;gt;
                        &amp;lt;/BtsActionMapping&amp;gt;&lt;/StaticAction&gt;&lt;CloseTimeout vt=”8″&gt;00:01:00&lt;/CloseTimeout&gt;&lt;ProxyToUse vt=”8″&gt;Default&lt;/ProxyToUse&gt;&lt;UserName vt=”8″&gt;[email protected]&lt;/UserName&gt;&lt;InboundNodeEncoding vt=”8″&gt;Xml&lt;/InboundNodeEncoding&gt;&lt;PropagateFaultMessage vt=”11″&gt;-1&lt;/PropagateFaultMessage&gt;&lt;ProxyAddress vt=”8″ /&gt;&lt;MessageEncoding vt=”8″&gt;Text&lt;/MessageEncoding&gt;&lt;OutboundBodyLocation vt=”8″&gt;UseBodyElement&lt;/OutboundBodyLocation&gt;&lt;/CustomProps&gt;</TransportTypeData>
                                <RetryCount>3</RetryCount>
                                <RetryInterval>5</RetryInterval>
                                <ServiceWindowEnabled>false</ServiceWindowEnabled>
                                <FromTime>2000-01-01T00:00:00</FromTime>
                                <ToTime>2000-01-01T23:59:59</ToTime>
                                <Primary>true</Primary>
                                <OrderedDelivery>false</OrderedDelivery>
                                <DeliveryNotification>1</DeliveryNotification>
                                <SendHandler Name=”BizTalkServerApplication” HostTrusted=”false”>
                                  <TransportType Name=”WCF-BasicHttp” Capabilities=”899″ ConfigurationClsid=”467c1a52-373f-4f09-9008-27af6b985f14″ />
                                </SendHandler>
                              </PrimaryTransport>
                              <SecondaryTransport>
                                <Address />
                                <RetryCount>3</RetryCount>
                                <RetryInterval>5</RetryInterval>
                                <ServiceWindowEnabled>false</ServiceWindowEnabled>
                                <FromTime>2000-01-01T15:00:00</FromTime>
                                <ToTime>2000-01-01T14:59:59</ToTime>
                                <Primary>false</Primary>
                                <OrderedDelivery>false</OrderedDelivery>
                                <DeliveryNotification>1</DeliveryNotification>
                                <SendHandler xsi:nil=”true” />
                              </SecondaryTransport>
                              <ReceivePipeline Name=”Microsoft.BizTalk.DefaultPipelines.XMLReceive” FullyQualifiedName=”Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ Type=”1″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
                              <ReceivePipelineData xsi:nil=”true” />
                              <Tracking>0</Tracking>
                              <Filter />
                              <Transforms />
                              <InboundTransforms />
                              <OrderedDelivery>false</OrderedDelivery>
                              <Priority>5</Priority>
                              <StopSendingOnFailure>false</StopSendingOnFailure>
                              <RouteFailedMessage>false</RouteFailedMessage>
                              <ApplicationName>GXS_Sample</ApplicationName>
                            </SendPort>
                            <SendPort Name=”WcfSendPort_gxs_ws_docManagementService_gxs_ws_docManagementPort0_Custom” IsStatic=”true” IsTwoWay=”true” BindingOption=”1″>
                              <Description>service “gxs_ws_docManagementService” port “gxs_ws_docManagementPort0″</Description>
                              <TransmitPipeline Name=”Microsoft.BizTalk.DefaultPipelines.PassThruTransmit” FullyQualifiedName=”Microsoft.BizTalk.DefaultPipelines.PassThruTransmit, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ Type=”2″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
                              <PrimaryTransport>
                                <Address>https://ws.betagrid.gxs.com/smg/ws_comm/mailboxList</Address&gt;
                                <TransportType Name=”WCF-Custom” Capabilities=”907″ ConfigurationClsid=”af081f69-38ca-4d5b-87df-f0344b12557a” />
                                <TransportTypeData>&lt;CustomProps&gt;&lt;PropagateFaultMessage vt=”11″&gt;-1&lt;/PropagateFaultMessage&gt;&lt;ProxyUserName vt=”8″ /&gt;&lt;OutboundXmlTemplate vt=”8″&gt;&amp;lt;bts-msg-body xmlns=”http://www.microsoft.com/schemas/bts2007” encoding=”xml”/&amp;gt;&lt;/OutboundXmlTemplate&gt;&lt;OutboundBodyLocation vt=”8″&gt;UseBodyElement&lt;/OutboundBodyLocation&gt;&lt;StaticAction vt=”8″&gt;&amp;lt;BtsActionMapping xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&amp;gt;
                          &amp;lt;Operation Name=”mailboxList” Action=”http://icslinux7/gxs.ws.docManagement/mailboxList” /&amp;gt;
                        &amp;lt;/BtsActionMapping&amp;gt;&lt;/StaticAction&gt;&lt;BindingConfiguration vt=”8″&gt;&amp;lt;binding name=”gxs_ws_docManagementBinding” maxReceivedMessageSize=”820224″ useDefaultWebProxy=”false”&amp;gt;&amp;lt;readerQuotas maxDepth=”32″ maxStringContentLength=”8192″ maxArrayLength=”16384″ maxBytesPerRead=”4096″ maxNameTableCharCount=”16384″ /&amp;gt;&amp;lt;security mode=”TransportWithMessageCredential” /&amp;gt;&amp;lt;/binding&amp;gt;&lt;/BindingConfiguration&gt;&lt;InboundNodeEncoding vt=”8″&gt;Xml&lt;/InboundNodeEncoding&gt;&lt;UseSSO vt=”11″&gt;0&lt;/UseSSO&gt;&lt;ProxyAddress vt=”8″ /&gt;&lt;Password vt=”1″ /&gt;&lt;AffiliateApplicationName vt=”8″ /&gt;&lt;BindingType vt=”8″&gt;basicHttpBinding&lt;/BindingType&gt;&lt;InboundBodyLocation vt=”8″&gt;UseBodyPath&lt;/InboundBodyLocation&gt;&lt;UserName vt=”8″&gt;[email protected]&lt;/UserName&gt;&lt;Identity vt=”8″ /&gt;&lt;InboundBodyPathExpression vt=”8″ /&gt;&lt;/CustomProps&gt;</TransportTypeData>
                                <RetryCount>3</RetryCount>
                                <RetryInterval>5</RetryInterval>
                                <ServiceWindowEnabled>false</ServiceWindowEnabled>
                                <FromTime>2000-01-01T00:00:00</FromTime>
                                <ToTime>2000-01-01T23:59:59</ToTime>
                                <Primary>true</Primary>
                                <OrderedDelivery>false</OrderedDelivery>
                                <DeliveryNotification>1</DeliveryNotification>
                                <SendHandler Name=”BizTalkServerApplication” HostTrusted=”false”>
                                  <TransportType Name=”WCF-Custom” Capabilities=”907″ ConfigurationClsid=”af081f69-38ca-4d5b-87df-f0344b12557a” />
                                </SendHandler>
                              </PrimaryTransport>
                              <SecondaryTransport>
                                <Address />
                                <RetryCount>3</RetryCount>
                                <RetryInterval>5</RetryInterval>
                                <ServiceWindowEnabled>false</ServiceWindowEnabled>
                                <FromTime>2000-01-01T15:00:00</FromTime>
                                <ToTime>2000-01-01T14:59:59</ToTime>
                                <Primary>false</Primary>
                                <OrderedDelivery>false</OrderedDelivery>
                                <DeliveryNotification>1</DeliveryNotification>
                                <SendHandler xsi:nil=”true” />
                              </SecondaryTransport>
                              <ReceivePipeline Name=”Microsoft.BizTalk.DefaultPipelines.XMLReceive” FullyQualifiedName=”Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ Type=”1″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
                              <ReceivePipelineData xsi:nil=”true” />
                              <Tracking>0</Tracking>
                              <Filter />
                              <Transforms />
                              <InboundTransforms />
                              <OrderedDelivery>false</OrderedDelivery>
                              <Priority>5</Priority>
                              <StopSendingOnFailure>false</StopSendingOnFailure>
                              <RouteFailedMessage>false</RouteFailedMessage>
                              <ApplicationName>GXS_Sample</ApplicationName>
                            </SendPort>
                          </SendPortCollection>
                          <DistributionListCollection />
                          <ReceivePortCollection>
                            <ReceivePort Name=”%u53d7%u4fe1%u30dd%u30fc%u30c8_GXS” IsTwoWay=”false” BindingOption=”1″>
                              <Description xsi:nil=”true” />
                              <ReceiveLocations>
                                <ReceiveLocation Name=”%u53d7%u4fe1%u5834%u6240_GXS”>
                                  <Description xsi:nil=”true” />
                                  <Address>E:\Shared\GXS_Sample\%u53d7%u4fe1%u30d5%u30a9%u30eb%u30c0\*.xml</Address>
                                  <PublicAddress />
                                  <Primary>true</Primary>
                                  <ReceiveLocationServiceWindowEnabled>false</ReceiveLocationServiceWindowEnabled>
                                  <ReceiveLocationFromTime>2000-01-01T15:00:00</ReceiveLocationFromTime>
                                  <ReceiveLocationToTime>2000-01-01T14:59:59</ReceiveLocationToTime>
                                  <ReceiveLocationStartDateEnabled>false</ReceiveLocationStartDateEnabled>
                                  <ReceiveLocationStartDate>2008-11-04T00:00:00</ReceiveLocationStartDate>
                                  <ReceiveLocationEndDateEnabled>false</ReceiveLocationEndDateEnabled>
                                  <ReceiveLocationEndDate>2008-11-05T23:59:59</ReceiveLocationEndDate>
                                  <ReceiveLocationTransportType Name=”FILE” Capabilities=”11″ ConfigurationClsid=”5e49e3a6-b4fc-4077-b44c-22f34a242fdb” />
                                  <ReceiveLocationTransportTypeData>&lt;CustomProps&gt;&lt;RemoveReceivedFileRetryCount vt=”19″&gt;5&lt;/RemoveReceivedFileRetryCount&gt;&lt;RemoveReceivedFileMaxInterval vt=”19″&gt;300000&lt;/RemoveReceivedFileMaxInterval&gt;&lt;FileMask vt=”8″&gt;*.xml&lt;/FileMask&gt;&lt;BatchSizeInBytes vt=”19″&gt;102400&lt;/BatchSizeInBytes&gt;&lt;PollingInterval vt=”19″&gt;60000&lt;/PollingInterval&gt;&lt;BatchSize vt=”19″&gt;20&lt;/BatchSize&gt;&lt;FileNetFailRetryInt vt=”19″&gt;5&lt;/FileNetFailRetryInt&gt;&lt;RemoveReceivedFileDelay vt=”19″&gt;10&lt;/RemoveReceivedFileDelay&gt;&lt;RenameReceivedFiles vt=”11″&gt;0&lt;/RenameReceivedFiles&gt;&lt;FileNetFailRetryCount vt=”19″&gt;5&lt;/FileNetFailRetryCount&gt;&lt;/CustomProps&gt;</ReceiveLocationTransportTypeData>
                                  <ReceivePipeline Name=”Microsoft.BizTalk.DefaultPipelines.XMLReceive” FullyQualifiedName=”Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ Type=”1″ TrackingOption=”ServiceStartEnd MessageSendReceive PipelineEvents” Description=”” />
                                  <ReceivePipelineData xsi:nil=”true” />
                                  <SendPipeline xsi:nil=”true” />
                                  <SendPipelineData xsi:nil=”true” />
                                  <Enable>false</Enable>
                                  <ReceiveHandler Name=”BizTalkServerApplication” HostTrusted=”false”>
                                    <TransportType Name=”FILE” Capabilities=”11″ ConfigurationClsid=”5e49e3a6-b4fc-4077-b44c-22f34a242fdb” />
                                  </ReceiveHandler>
                                </ReceiveLocation>
                              </ReceiveLocations>
                              <SendPipelineData xsi:nil=”true” />
                              <Authentication>0</Authentication>
                              <Tracking>0</Tracking>
                              <Transforms />
                              <RouteFailedMessage>false</RouteFailedMessage>
                              <ApplicationName>GXS_Sample</ApplicationName>
                            </ReceivePort>
                          </ReceivePortCollection>
                          <PartyCollection />
                        </BindingInfo>

                         

                        <xs:element name=”mailboxListResponse>
                        <xs:annotation>
                          <xs:documentation>Wrapper element for message “_mailboxListOutput” of RPC operation “mailboxList”.</xs:documentation>
                          </xs:annotation>
                        <xs:complexType>
                        <xs:sequence>
                          <xs:element name=”return type=”xs:string />
                          </xs:sequence>
                          </xs:complexType>
                          </xs:element>
                          </xs:schema>
                      • #21192

                         Hello,

                        I found that disable timestamp in Binding will resolve the security hearder problem.

                        I found some code for .NET as following, but not know how to add this to BizTalk. Please help me on this.

                        BindingElementCollection elements = MyClient.Endpoint.Binding.CreateBindingElements();
                        elements.Find<SecurityBindingElement>().IncludeTimestamp = false;
                        MyClient.Endpoint.Binding = new CustomBinding(elements);

                         

                      • #21199

                        Hi ryo777,

                        I am also facing similar issue where I have send Soap 1.1 message to Siebel Web Service along with UserNameToken header. I tried BasicHttp and Custom binding but not able to make it work.

                        Is it possible for you to send me the binding file with some bullet points configuration changes which make it work. Mine is one-way call only.

                        Thanks alot for your help.

                        Regards,
                        -Javed
                        [email protected]

                         

                      • #21201

                        Hi, Javed

                        My whole binding file is in the page 1. You can save them in 1 xml file then import it to binding.

                        I think WSE3.0 setting is importanat. you need to do that.

                        Good luck

                        Ryo

                      • #21203

                        Hi Ryo,

                        Thanks for the reply. I have few configuration questions.

                        1. Did you used WCF adapter (basicHTTP bindings) along with WSE?
                        2. Do I have to install WSE on my BizTalk Server and Development machine?
                        3. Rebuild and re-deploy BizTalk application after enabling WSE as per your instruction on page 1.

                        Also, I tried copying and applying binding files from your previous post, but copied binding file as some invalid chars which throwing error while importing. Can you pleae email me the binding file at [email protected]

                        Thanks for your time and help.

                        Regards,
                        -Javed

                      • #21204

                         Hello,

                        1. Did you used WCF adapter (basicHTTP bindings) along with WSE?
                        A) I am using WCF-custom (binding = bisicHTTP)

                        2. Do I have to install WSE on my BizTalk Server and Development machine?
                        A) I think so

                        3. Rebuild and re-deploy BizTalk application after enabling WSE as per your instruction on page 1.
                        A) Yes, After setting you need deploy again.

                        Ryo

                      • #21207

                         

                        Thanks Ryo,

                        I will try your suggestion and will come back if I still have any question.

                        Thanks,
                        -Javed

                      • #21209

                        Would you need updating your WSDL at your server side with security token first?

                        Cos I can’t see any SOAP header of Secuirty token yet.

                        i.e. using any browser to this URL:

                        https://ws.betagrid.gxs.com/smg/ws_comm/mailboxList?wsdl

                        Where is the security token section?

                      • #21210

                         Hello,

                        That URI did not have security check. Security check is done by other server.

                        That is the reason you can not see the taken from access the URI only.

                      • #21212

                        Hi Ryo,

                        If that is the case, the Client Application who wants to consume your web service, will not able to generate the correct proxy class.

                        Let us say, I am using VS to create windows application, then add web reference to your URI. VS suppose to generate the proxy class automatically for me inclusive the security token class which reading from SOAP header Sections of WSDL.

                        My understanding is WSDL is to say who and what they are provides and how to access them. Sorry if my understand is incorrect.

                        mandyk

                      • #21213

                         Hello, mandyk

                        We have success access from a java client soft with security taken user. I also some successful log for my current setting for request to the server and server sent back respose. so what i am facing now is to find out what is the issue for BizTalk not receiving that message.

                        thanks

                        Ryo

                      • #21273

                         Hi Ryo,

                        I have similar situation like yours. The Biztalk can not received the response without security header part in place. It is seem because Biztalk try to maintain consistency upon sending the message and get response. Currently I am using WCF basicHTTP which is not give me properties say “relax the security for response”.

                        So Perhaps if you could try just copy the sender security header to be security section for response.. May be that is what Biztalk wants..anyway it just an idea..

                        mandyk

                      • #21318

                        Hello, All

                        I found the answer and tested it successfully.

                        Main is 3 part:1) <security authenticationMode=”UserNameOverTransport”  2)<httpsTransport /> 3) <textMessageEncoding messageVersion=”Soap11″ />

                        Please see following:

                        <?xml version=”1.0″ encoding=”utf-8″?>
                        <configuration>
                          <system.serviceModel>
                            <client>
                              <endpoint address=”https://ws.betagrid.gxs.com/smg/ws_comm/mailboxList” binding=”basicHttpBinding” bindingConfiguration=”gxs_ws_docManagementBinding” contract=”BizTalk” name=”WcfSendPort_gxs_ws_docManagementService_gxs_ws_docManagementPort0_Custom” />
                            </client>
                            <bindings>
                              <customBinding>
                                <binding name=”gxs_ws_docManagementBinding”>
                                  <security authenticationMode=”UserNameOverTransport” includeTimestamp=”false”messageSecurityVersion=”WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10″>
                                  <textMessageEncoding messageVersion=”Soap11″ />
                                  <httpsTransport />
                                </binding>
                              </customBinding>
                            </bindings>
                          </system.serviceModel>
                        </configuration>

                         Ryo

                      • #21319

                        Hello, All

                        You can see folloing from MS.

                        http://msdn.microsoft.com/en-us/library/ms731377(VS.85).aspx

                        Ryo

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.