[jboss-user] [JBossWS] - webParameter is null
    florian79 
    do-not-reply at jboss.com
       
    Mon Jul 16 09:07:10 EDT 2007
    
    
  
The call to the webservice works fine but the parameter are null (or 0 in case of int).
I use a AJAX- Client and send directly the xml.
the Bean:
  | @WebService(
  | 	endpointInterface="com.dooris.ws.TheServicePortType",
  | 	targetNamespace="http://www.tai.it/TheService",
  | 	serviceName="TheService",
  | 	portName="TheServiceSOAP"
  | )
  | @Stateless
  | public class TheServiceImpl implements TheServiceSessionBean
  | {
  |     public final String getHalloWorld()
  |     {
  | 	return "Hallo Welt ";
  |     }
  |     
  |     public final String sayHallo(int iNameGot)
  |     {
  | 	return "Hallo " + iNameGot;
  |     }
  | }
  | 
the call (xml):
  | <?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><sayHallo xmlns='http://www.tai.it/TheService'><arg0>5567</arg0></sayHallo></soap:Body></soap:Envelope>
and the response (xml)
Status:200
  | RESULT:<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHalloResponse xmlns:ns2="http://www.tai.it/TheService"><return>Hallo 0</return></ns2:sayHalloResponse></env:Body></env:Envelope>
where is my mistake?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064528#4064528
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064528
    
    
More information about the jboss-user
mailing list