Hello everybody:
Im currently working in writing an Axis client for a Web Service
running in IIS and programmed with dot Net.
I already have clients running in dotNet and Java Oracle libraries and
I am completely certain the web services are up and running.
Nevertheless when I run my Axis client I get the next message:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.NullReferenceException: Object reference
not set to an instance of an object.
at SgServer.ProcessMessage(WSRequest UserRequest) in
d:\jmcruz\Server\App_Code\SgServer.cs:line 35
--- End of inner exception stack trace ---
The code is shown next:
public static void main(String [] args) {
try {
String endpoint ="http://jmcruz/WS/server.asmx";
Service service = new Service();
service.getEngine().setOption(AxisEngine.PROP_DOMULTIREFS,
Boolean.FALSE);
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
byte[] contenido = new byte[5];
Document documento = new Document();
documento.setFileName("data.dat");
documento.setFileSize(5);
documento.setFileData(contenido);
DocumentRequest request = new DocumentRequest();
request.setDoc(documento);
call.addParameter("UserRequest",
new QName("http://employers.com/server", "DocumentRequest"),
javax.xml.rpc.ParameterMode.IN);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setSOAPActionURI("http://employers.com/server/ProcessMessage");
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setReturnType(new
QName("http://employers.com/server/SgSignServer","DocumentResponse"),DocumentResponse.class);
call.setOperationName(new QName("http://employers.com/server",
"ProcessMessage_Firmar"));
call.invoke( new Object[] { request } );
} catch (Exception e) {
System.err.println(e.toString());
}
Does anyone know what is happening here? Even the SoapAction is
exactly the same used in the dotnet and oracle versions.
Thank you in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]