[Users] BC SOAP Inconsistency between http header and SOAP header

BibleBelt Holger.Wenzel at 3ds.com
Wed Mar 16 11:05:51 CET 2011


Ok,

1. WSDL 


Code:


<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:impl="http://b2b.pse.system.engineous.com" xmlns:intf="http://b2b.pse.system.engineous.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://b2b.pse.system.engineous.com">
  <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://b2b.pse.system.engineous.com">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
      <element name="remoteDomain" nillable="true" type="xsd:string" />
      <element name="remoteUserId" nillable="true" type="xsd:string" />
      <element name="modelName" nillable="true" type="xsd:string" />
      <element name="modelVer" nillable="true" type="xsd:string" />
      <element name="callbackURL" nillable="true" type="xsd:string" />
      <element name="string" nillable="true" type="xsd:string" />
      <element name="correlationId" nillable="true" type="xsd:string" />
      <element name="callbackWSDL" nillable="true" type="xsd:string" />
      <element name="jobId" nillable="true" type="xsd:string" />
      <element name="getPartnerDomainReturn" nillable="true" type="xsd:string" />
    </schema>
  </wsdl:types>
  <wsdl:message name="getPartnerDomainRequest">
    <wsdl:part name="remoteDomain" type="xsd:string" />
    <wsdl:part name="remoteUserId" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="executeModelRequest">
    <wsdl:part name="remoteDomain" type="xsd:string" />
    <wsdl:part name="remoteUserId" type="xsd:string" />
    <wsdl:part name="correlationId" type="xsd:string" />
    <wsdl:part name="runInfo" type="soapenc:base64" />
    <wsdl:part name="callbackWSDL" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="receiveExecutionResultRequest">
    <wsdl:part name="context" type="soapenc:base64" />
    <wsdl:part name="remoteJobCC" type="soapenc:int" />
    <wsdl:part name="jobId" type="xsd:string" />
    <wsdl:part name="correlationId" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="describeModelResponse">
    <wsdl:part name="describeModelReturn" type="soapenc:base64" />
  </wsdl:message>
  <wsdl:message name="getModelsRequest">
    <wsdl:part name="remoteDomain" type="xsd:string" />
    <wsdl:part name="remoteUserId" type="xsd:string" />
    <wsdl:part name="callbackURL" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="describeModelRequest">
    <wsdl:part name="remoteDomain" type="xsd:string" />
    <wsdl:part name="remoteUserId" type="xsd:string" />
    <wsdl:part name="modelName" type="xsd:string" />
    <wsdl:part name="modelVer" type="xsd:string" />
    <wsdl:part name="callbackURL" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="getModelsResponse">
    <wsdl:part name="getModelsReturn" type="soapenc:base64" />
  </wsdl:message>
  <wsdl:message name="receiveExecutionResultResponse" />
  <wsdl:message name="executeModelResponse">
    <wsdl:part name="executeModelReturn" type="soapenc:base64" />
  </wsdl:message>
  <wsdl:message name="getPartnerDomainResponse">
    <wsdl:part name="getPartnerDomainReturn" type="xsd:string" />
  </wsdl:message>
  <wsdl:portType name="ModelAgent">
    <wsdl:operation name="describeModel" parameterOrder="remoteDomain remoteUserId modelName modelVer callbackURL">
      <wsdl:input message="impl:describeModelRequest" name="describeModelRequest" />
      <wsdl:output message="impl:describeModelResponse" name="describeModelResponse" />
    </wsdl:operation>
    <wsdl:operation name="executeModel" parameterOrder="remoteDomain remoteUserId correlationId runInfo callbackWSDL">
      <wsdl:input message="impl:executeModelRequest" name="executeModelRequest" />
      <wsdl:output message="impl:executeModelResponse" name="executeModelResponse" />
    </wsdl:operation>
    <wsdl:operation name="getModels" parameterOrder="remoteDomain remoteUserId callbackURL">
      <wsdl:input message="impl:getModelsRequest" name="getModelsRequest" />
      <wsdl:output message="impl:getModelsResponse" name="getModelsResponse" />
    </wsdl:operation>
    <wsdl:operation name="receiveExecutionResult" parameterOrder="context remoteJobCC jobId correlationId">
      <wsdl:input message="impl:receiveExecutionResultRequest" name="receiveExecutionResultRequest" />
      <wsdl:output message="impl:receiveExecutionResultResponse" name="receiveExecutionResultResponse" />
    </wsdl:operation>
    <wsdl:operation name="getPartnerDomain" parameterOrder="remoteDomain remoteUserId">
      <wsdl:input message="impl:getPartnerDomainRequest" name="getPartnerDomainRequest" />
      <wsdl:output message="impl:getPartnerDomainResponse" name="getPartnerDomainResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ModelAgentSoapBinding" type="impl:ModelAgent">
    <wsaw:UsingAddressing wsdl:required="false" />
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="describeModel">
      <wsdlsoap:operation soapAction="describeModel" />
      <wsdl:input name="describeModelRequest">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:input>
      <wsdl:output name="describeModelResponse">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="executeModel">
      <wsdlsoap:operation soapAction="executeModel" />
      <wsdl:input name="executeModelRequest">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:input>
      <wsdl:output name="executeModelResponse">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getModels">
      <wsdlsoap:operation soapAction="getModels" />
      <wsdl:input name="getModelsRequest">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:input>
      <wsdl:output name="getModelsResponse">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="receiveExecutionResult">
      <wsdlsoap:operation soapAction="receiveExecutionResult" />
      <wsdl:input name="receiveExecutionResultRequest">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:input>
      <wsdl:output name="receiveExecutionResultResponse">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPartnerDomain">
      <wsdlsoap:operation soapAction="getPartnerDomain" />
      <wsdl:input name="getPartnerDomainRequest">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:input>
      <wsdl:output name="getPartnerDomainResponse">
        <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://b2b.pse.system.engineous.com" use="encoded" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="ModelAgentService">
    <wsdl:port binding="impl:ModelAgentSoapBinding" name="ModelAgentPort">
      <wsdlsoap:address location="http://localhost:9080/b2bHttpRouter/services/ModelAgent" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>




2. jbi.xml of provide 


Code:

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	JBI descriptor for the Petals' "petals-bc-soap" component (SOAP).
	Originally created for the version 4.0 of the component.
 -->
<jbi:jbi version="1.0" 
	xmlns:generatedNs="http://b2b.pse.system.engineous.com"
	xmlns:jbi="http://java.sun.com/xml/ns/jbi"
	xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
	xmlns:soap="http://petals.ow2.org/components/soap/version-4"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
	<jbi:services binding-component="true">
	
		<!-- Import a Service into Petals => provides a Service. -->
		<jbi:provides 		
			interface-name="generatedNs:ModelAgent"
			service-name="generatedNs:ModelAgentService"
			endpoint-name="ModelAgentPort">
	
			<!-- CDK specific elements -->
			<petalsCDK:timeout>30000</petalsCDK:timeout>
			<petalsCDK:validate-wsdl>true</petalsCDK:validate-wsdl>
			<petalsCDK:forward-security-subject>false</petalsCDK:forward-security-subject>
			<petalsCDK:forward-message-properties>false</petalsCDK:forward-message-properties>
			<petalsCDK:forward-attachments>false</petalsCDK:forward-attachments>
			<petalsCDK:wsdl>ModelAgent.wsdl</petalsCDK:wsdl>
		
			<!-- Component specific elements -->	
			<soap:address>http://localhost:9080/b2bHttpRouter/services/ModelAgent</soap:address>
			<soap:soap-version>1.1</soap:soap-version>
			<soap:chunked-mode>false</soap:chunked-mode>
			<soap:cleanup-transport>true</soap:cleanup-transport>
			<soap:mode>SOAP</soap:mode>			
		</jbi:provides>
	</jbi:services>
</jbi:jbi>




3. jbi.xml of consume

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	JBI descriptor for the Petals' "petals-bc-soap" component (SOAP).
	Originally created for the version 4.0 of the component.
 -->
<jbi:jbi version="1.0" 
	xmlns:generatedNs="http://b2b.pse.system.engineous.com"
	xmlns:jbi="http://java.sun.com/xml/ns/jbi"
	xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
	xmlns:soap="http://petals.ow2.org/components/soap/version-4"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
	<jbi:services binding-component="true">
	
		<!-- Expose a Petals Service => consumes a Service. -->
		<jbi:consumes
			interface-name="generatedNs:ModelAgent"
			service-name="generatedNs:ModelAgentService"
			endpoint-name="ModelAgentPort">
	
			<!-- CDK specific elements -->
			<petalsCDK:timeout>30000</petalsCDK:timeout>
			<petalsCDK:mep>InOut</petalsCDK:mep>
		
			<!-- Component specific elements -->	
			<soap:service-name>ModelAgent</soap:service-name>
			<soap:mode>SOAP</soap:mode>
			<soap:enable-http-transport>true</soap:enable-http-transport>
			<soap:enable-jms-transport>false</soap:enable-jms-transport>
		</jbi:consumes>
	</jbi:services>
</jbi:jbi>




Thanks a lot,

Holger




-------------------- m2f --------------------

Subscribe/Unsubscribe emails notifications :
http://forum.petalslink.com/m2f_usercp.php

Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)

Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=31686#31686

-------------------- m2f --------------------






More information about the Users mailing list