Hello Ning, thanks for your reply

On 9/22/07, Jiang, Ning (Willem) <[EMAIL PROTECTED]> wrote:
> You need to set the factory with the address that you got from the wsdl 
> (http://localhost:8080/Service?wsdl).
> It must be something like this "http://localhost:8080/Service/***";

the solution you proposed actually works (with 2 * instead of 3).

 But I dont understand why. The WSDL reports:

 <soap:address location="http://localhost:8080/Service"/>

Is this a WSDL specific issue, which I might solve simply by reading a
bit more about WS ?

Follows the full WSDL, in case

<?xml version="1.0" encoding="utf-8"?><wsdl:definitions
xmlns:ns1="http://connectors.bf.fractal.objectweb.org/";
xmlns:ns2="http://schemas.xmlsoap.org/soap/http";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="Service"
targetNamespace="http://connectors.bf.fractal.objectweb.org/";>
  <wsdl:types>
<xsd:schema xmlns="http://connectors.bf.fractal.objectweb.org/";
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://connectors.bf.fractal.objectweb.org/";>
<xsd:element name="printAndAnswer" type="printAndAnswer"/>
<xsd:complexType name="printAndAnswer">
<xsd:sequence/>
</xsd:complexType>
<xsd:element name="printAndAnswerResponse" type="printAndAnswerResponse"/>
<xsd:complexType name="printAndAnswerResponse">
<xsd:sequence>
<xsd:element minOccurs="0" name="return" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="print" type="print"/>
<xsd:complexType name="print">
<xsd:sequence/>
</xsd:complexType>
<xsd:element name="printResponse" type="printResponse"/>
<xsd:complexType name="printResponse">
<xsd:sequence/>
</xsd:complexType>
</xsd:schema>
  </wsdl:types>
  <wsdl:message name="printAndAnswerResponse">
    <wsdl:part element="ns1:printAndAnswerResponse" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="print">
    <wsdl:part element="ns1:print" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="printResponse">
    <wsdl:part element="ns1:printResponse" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="printAndAnswer">
    <wsdl:part element="ns1:printAndAnswer" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="ServicePortType">
    <wsdl:operation name="printAndAnswer">
      <wsdl:input message="ns1:printAndAnswer" name="printAndAnswer">
    </wsdl:input>
      <wsdl:output message="ns1:printAndAnswerResponse"
name="printAndAnswerResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="print">
      <wsdl:input message="ns1:print" name="print">
    </wsdl:input>
      <wsdl:output message="ns1:printResponse" name="printResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ServiceSoapBinding" type="ns1:ServicePortType">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="printAndAnswer">
      <soap:operation soapAction="" style="document"/>
      <wsdl:input name="printAndAnswer">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="printAndAnswerResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="print">
      <soap:operation soapAction="" style="document"/>
      <wsdl:input name="print">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="printResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="Service">
    <wsdl:port binding="ns1:ServiceSoapBinding" name="ServicePort">
      <soap:address location="http://localhost:8080/Service"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-- 
http://valerioschiavoni.blogspot.com
http://jroller.com/vschiavoni

Reply via email to