Mike,

The only problem I see in the snippet of WSDL that you've given us is that you have specificed "style" and "use" attributes in the <wsdl:operation> definition. (You must specify the "style" attribute in the <soap:binding> definition or in the <soap:operation> definition, and you must specify the "use" attribute in  <soap:body>, <soap:header>, and <soap:fault> definitions. (I can't say whether all your references are correct without seeing the rest of the WSDL.)

In any case, the generated code corresponds to the WSDL. The QName of the generated wrapper element that indicates the method name ("authenticate") is taken from the "namespace" attribute in your <soap:body> definition.

If you would like more help, please provide the complete WSDL file and the error you're getting.

Anne

On 11/4/05, Michel Erard <[EMAIL PROTECTED]> wrote:
Hello,

I'm generating a webservise with maven (wsdl2java).
In the generated deploy wsdl I have: service name="elquerito-port" but
in the generated BindingStub.java it's writing:
_call.setOperationName(new
javax.xml.namespace.QName("http://elquerito.hti.bfh.ch/soap/wsdl/v1.0",
"authenticate")); the namespace is used instead of the port-type. This
was the server does nod finde the requested service by the client.

is there a fault in the wsdl?

<soap:binding style="rpc"
transport=" http://schemas.xmlsoap.org/soap/http"/>
      <operation style="rpc" use="encoded" name="authenticate">
          <soap:operation soapAction="authenticate"/>
          <input name="authenticate-request">
              <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ "
namespace="http://elquerito.hti.bfh.ch/soap/wsdl/v1.0"/>
          </input>
          <output name="authenticate-response">
              <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace=" http://elquerito.hti.bfh.ch/soap/wsdl/v1.0"/>
          </output>
          <fault name="elquerito-soap-exception">
              <soap:fault use="encoded"
encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://elquerito.hti.bfh.ch/soap/wsdl/v1.0"/ >
          </fault>
      </operation>

Regards,

Mike


Reply via email to