SOAP使用BizTalk为IIS创建Web服务器

时间:2015-09-16 09:23:53

标签: wcf soap wsdl biztalk

我必须使用BizTalk涉及

来配置SOAP Web服务

它必须如何运作  1.客户登录/传递到https://soap.mjr.ru/soap.svc  2.客户发送Request,如

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:doc="https://docflow.mjr.ru.Request">
   <soapenv:Header/>
   <soapenv:Body>
      <doc:Request>
         <MessageIdentifier>1231</MessageIdentifier>
         <MessageType>3B18</MessageType>
         <MessagePriority>1</MessagePriority>
         <XmlRequest>kuehgiuehriveiveibveifbveifbviebfvieb</XmlRequest>
         <Sender>123456789</Sender>
         <Receiver>123456789</Receiver>
      </doc:Request>
   </soapenv:Body>
</soapenv:Envelope>
  1. 我身边的SOAP服务器接收请求并发回客户回答有关收据或错误代码
  2. 的回复
  3. 服务器从Request字段中获取入站邮件数据,并将其像XML一样放入文件夹
  4. 我做了什么

    1. 在Visual Studio中,我使用XSD为RequestResponse
    2. 创建了新的BT项目
    3. 我已将此项目部署到BTS
    4. 在utilite BizTalk WCF service Publishing Wizard中我将架构作为服务公布到/soap/soap.svc
    5. 由SQL用户配置子站点应用程序假脱机以进行数据库连接
    6. 在IIS中创建新网站并将其绑定到https://soap.mjr.ru
    7. 为此文件夹的客户端用户配置权限
    8. 在BizTalk Server Administrator配置接收端口&amp;接收位置(它们已自动创建)。将地址重写为/soap/soap.svc到`/soap.svc'
    9. 的文件
    10. 在BTS中运行应用程序,然后我可以在https://soap.mjr.ru/soap.svc?WSDL
    11. 看到该文件

      但是我无法通过SOAPUI获得我的服务。这里我有401错误..这就是全部

      请帮助正确配置

      列出web.config

      <?xml version="1.0" encoding="utf-8"?>
      <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
      
        <configSections>
          <section name="bizTalkSettings" type="Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkConfigurationSection, 
      
      Microsoft.BizTalk.Adapter.Wcf.Runtime, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </configSections>
      
        <bizTalkSettings>
          <mexServiceHostFactory debug="false">
            <receiveLocationMappings>
            </receiveLocationMappings>
          </mexServiceHostFactory>
          <webServiceHostFactory debug="false" />
          <isolatedReceiver disable="false" />
          <btsWsdlExporter disable="false" />
        </bizTalkSettings>
      
        <appSettings />
      
        <connectionStrings />
      
        <system.web>
          <customErrors mode="Off" />
          <compilation defaultLanguage="c#" debug="false">
      
            <assemblies>
              <add assembly="mscorlib, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" />
              <add assembly="Microsoft.BizTalk.Adapter.Wcf.Common, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
              <add assembly="Microsoft.BizTalk.Adapter.Wcf.Runtime, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            </assemblies>
      
          </compilation>
      
          <authentication mode="Windows" />
              <identity impersonate="false" />
        </system.web>
      
        <system.serviceModel>
      
          <extensions><behaviorExtensions><add name="btsWsdlExporter" type="Microsoft.BizTalk.Adapter.Wcf.Metadata.BtsWsdlExporterElement, 
      
      Microsoft.BizTalk.Adapter.Wcf.Runtime, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></behaviorExtensions></extensions>
      
          <bindings>
            <basicHttpBinding>
              <binding name="httpBinding">
                <security mode="TransportCredentialOnly">
                  <transport clientCredentialType="Basic" />
                </security>
              </binding>
            </basicHttpBinding>
          </bindings>
      
          <diagnostics>
            <endToEndTracing activityTracing="true" messageFlowTracing="true" propagateActivity="true">
            </endToEndTracing>
          </diagnostics>
      
          <behaviors>
            <serviceBehaviors>
              <behavior name="ServiceBehaviorConfiguration">
                <serviceDebug httpHelpPageEnabled="true" httpsHelpPageEnabled="true" includeExceptionDetailInFaults="true" />
                <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
              </behavior>
            </serviceBehaviors>
          </behaviors>
      
          <services>
      
            <service name="Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkServiceInstance" behaviorConfiguration="ServiceBehaviorConfiguration">
             <host>
                <baseAddresses>
                  <add baseAddress="https://10.8.1.226/soap.svc" />
                  <add baseAddress="https://soap.mjr.ru/soap.svc" />
                </baseAddresses>
              </host>        
              <endpoint name="HttpMexEndpoint" address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
            </service>
      
          </services>
        </system.serviceModel>
      </configuration>
      

0 个答案:

没有答案