Home Page › Forums › BizTalk 2004 – BizTalk 2010 › How to config/costom a WS Security to SOAP header › Re: How to config/costom a WS Security to SOAP header
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><CustomProps><UseTempFileOnWrite vt=”11″>0</UseTempFileOnWrite><CopyMode vt=”19″>1</CopyMode><FileName vt=”8″>%MessageID%.xml</FileName><AllowCacheOnWrite vt=”11″>0</AllowCacheOnWrite></CustomProps></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>
<TransportType Name=”WCF-BasicHttp” Capabilities=”899″ ConfigurationClsid=”467c1a52-373f-4f09-9008-27af6b985f14″ />
<TransportTypeData><CustomProps><ServiceCertificate vt=”8″ /><UseSSO vt=”11″>0</UseSSO><InboundBodyPathExpression vt=”8″ /><MessageClientCredentialType vt=”8″>UserName</MessageClientCredentialType><SendTimeout vt=”8″>00:01:00</SendTimeout><OutboundXmlTemplate vt=”8″>&lt;bts-msg-body xmlns=”http://www.microsoft.com/schemas/bts2007” encoding=”xml”/&gt;</OutboundXmlTemplate><OpenTimeout vt=”8″>00:01:00</OpenTimeout><InboundBodyLocation vt=”8″>UseBodyElement</InboundBodyLocation><AlgorithmSuite vt=”8″>Basic256</AlgorithmSuite><SecurityMode vt=”8″>Transport</SecurityMode><TransportClientCredentialType vt=”8″>Basic</TransportClientCredentialType><AffiliateApplicationName vt=”8″ /><ClientCertificate vt=”8″ /><ProxyUserName vt=”8″ /><MaxReceivedMessageSize vt=”3″>65536</MaxReceivedMessageSize><TextEncoding vt=”8″>utf-8</TextEncoding><StaticAction vt=”8″>&lt;BtsActionMapping xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&gt;
&lt;Operation Name=”mailboxList” Action=”http://icslinux7/gxs.ws.docManagement/mailboxList” /&gt;
&lt;/BtsActionMapping&gt;</StaticAction><CloseTimeout vt=”8″>00:01:00</CloseTimeout><ProxyToUse vt=”8″>Default</ProxyToUse><UserName vt=”8″>[email protected]</UserName><InboundNodeEncoding vt=”8″>Xml</InboundNodeEncoding><PropagateFaultMessage vt=”11″>-1</PropagateFaultMessage><ProxyAddress vt=”8″ /><MessageEncoding vt=”8″>Text</MessageEncoding><OutboundBodyLocation vt=”8″>UseBodyElement</OutboundBodyLocation></CustomProps></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>
<TransportType Name=”WCF-Custom” Capabilities=”907″ ConfigurationClsid=”af081f69-38ca-4d5b-87df-f0344b12557a” />
<TransportTypeData><CustomProps><PropagateFaultMessage vt=”11″>-1</PropagateFaultMessage><ProxyUserName vt=”8″ /><OutboundXmlTemplate vt=”8″>&lt;bts-msg-body xmlns=”http://www.microsoft.com/schemas/bts2007” encoding=”xml”/&gt;</OutboundXmlTemplate><OutboundBodyLocation vt=”8″>UseBodyElement</OutboundBodyLocation><StaticAction vt=”8″>&lt;BtsActionMapping xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&gt;
&lt;Operation Name=”mailboxList” Action=”http://icslinux7/gxs.ws.docManagement/mailboxList” /&gt;
&lt;/BtsActionMapping&gt;</StaticAction><BindingConfiguration vt=”8″>&lt;binding name=”gxs_ws_docManagementBinding” maxReceivedMessageSize=”820224″ useDefaultWebProxy=”false”&gt;&lt;readerQuotas maxDepth=”32″ maxStringContentLength=”8192″ maxArrayLength=”16384″ maxBytesPerRead=”4096″ maxNameTableCharCount=”16384″ /&gt;&lt;security mode=”TransportWithMessageCredential” /&gt;&lt;/binding&gt;</BindingConfiguration><InboundNodeEncoding vt=”8″>Xml</InboundNodeEncoding><UseSSO vt=”11″>0</UseSSO><ProxyAddress vt=”8″ /><Password vt=”1″ /><AffiliateApplicationName vt=”8″ /><BindingType vt=”8″>basicHttpBinding</BindingType><InboundBodyLocation vt=”8″>UseBodyPath</InboundBodyLocation><UserName vt=”8″>[email protected]</UserName><Identity vt=”8″ /><InboundBodyPathExpression vt=”8″ /></CustomProps></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><CustomProps><RemoveReceivedFileRetryCount vt=”19″>5</RemoveReceivedFileRetryCount><RemoveReceivedFileMaxInterval vt=”19″>300000</RemoveReceivedFileMaxInterval><FileMask vt=”8″>*.xml</FileMask><BatchSizeInBytes vt=”19″>102400</BatchSizeInBytes><PollingInterval vt=”19″>60000</PollingInterval><BatchSize vt=”19″>20</BatchSize><FileNetFailRetryInt vt=”19″>5</FileNetFailRetryInt><RemoveReceivedFileDelay vt=”19″>10</RemoveReceivedFileDelay><RenameReceivedFiles vt=”11″>0</RenameReceivedFiles><FileNetFailRetryCount vt=”19″>5</FileNetFailRetryCount></CustomProps></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>