salve sto tentando di fare comunicare un client fatto in java(axis2 1.4) con un webservice scritto in c#.
codice java :
lo stub l'ho generato con wsdl2javacodice:try{ hellojaxws.HelloJaxWsStub s = new HelloJaxWsStub("http://localhost:5969/HelloJaxWs.asmx"); hellojaxws.HelloJaxWsStub.Hello h = new hellojaxws.HelloJaxWsStub.Hello(); h.setName("Massimo"); hellojaxws.HelloJaxWsStub.HelloResponse res = s.hello(h); System.out.println(res.getHelloResult()); }catch(Exception ex){ System.out.println(ex.getMessage()); }
codice c# :
l'errore che prendo è questo :codice:using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; namespace webservice { /// <summary> /// Descrizione di riepilogo per Service1 /// </summary> [WebService(Namespace = "urn:HelloJaxWs")] [SoapRpcService()] [WebServiceBinding(ConformsTo = WsiProfiles.None)] [ToolboxItem(false)] public class HelloJaxWs : System.Web.Services.WebService { [WebMethod] public string hello(string name) { return "Hello World " + name; } } }
The input stream for an incoming message is null.
potreste aiutarmi?codice:[org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:72), org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353), org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416), org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228), org.apache.axis2.client.OperationClient.execute(OperationClient.java:163), hellojaxws.HelloJaxWsStub.hello(HelloJaxWsStub.java:186), main_test.main(main_test.java:20)]


Rispondi quotando

