[jboss-user] [JBossWS] - Re: org.jboss.ws.WSException: Cannot find java method

ZazzaZ do-not-reply at jboss.com
Mon Oct 22 08:32:59 EDT 2007


I just modified my WSDL like this

  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <definitions name="ControlloAccesso" targetNamespace="http://j2ee.netbeans.org/wsdl/ControlloAccesso"
  |     xmlns="http://schemas.xmlsoap.org/wsdl/"
  |     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  |     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  |     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/ControlloAccesso" xmlns:ns="http://xml.netbeans.org/schema/LoginTypes">
  |     <types>
  |         <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ControlloAccesso">
  |             <xsd:import namespace="http://xml.netbeans.org/schema/LoginTypes" schemaLocation="types.xsd"/>
  |         </xsd:schema>
  |     </types>
  |     <message name="ControlloAccessoOperationRequest">
  |         <part name="cred" type="ns:Credenziali"/>
  |     </message>
  |     <message name="ControlloAccessoOperationReply">
  |         <part name="iden" type="ns:Identificato"/>
  |     </message>
  |     <portType name="ControlloAccessoPortType">
  |         <operation name="controlloAccessoOperation">
  |             <input message="tns:ControlloAccessoOperationRequest"/>
  |             <output message="tns:ControlloAccessoOperationReply"/>
  |         </operation>
  |     </portType>
  |     <binding name="ControlloAccessoBinding" type="tns:ControlloAccessoPortType">
  |         <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  |         <operation name="controlloAccessoOperation">
  |             <soap:operation/>
  |             <input>
  |                 <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ControlloAccesso"/>
  |             </input>
  |             <output>
  |                 <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ControlloAccesso"/>
  |             </output>
  |         </operation>
  |     </binding>
  |     <service name="ControlloAccessoService">
  |         <port name="ControlloAccessoPort" binding="tns:ControlloAccessoBinding">
  |             <soap:address location="http://localhost:8080/ControlloAccesso/controllo"/>
  |         </port>
  |     </service>
  | 
  | </definitions>
  | 
  | 

ant regenerating the service went OK.
I dunno if the problem was in the attribute name of binding operation or message part but now it works!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097444#4097444

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097444



More information about the jboss-user mailing list