I am trying to deploy my own implementation of a service on localhost by using
wsdl from an existing service. So when I generate the client and server stub
and skeleton, I have code as follows in my Locator.java:
private java.lang.String TZCServiceSoap_address =
"http://localhost/ETTMServices/TZCService.asmx";
public javax.xml.namespace.QName getServiceName() {
return new javax.xml.namespace.QName("http://Sirit/ETTM/",
"TZCService");
}
An asmx file is a .NET web service that is being used by the original
implementor of the existing web service. I think I need to change that to the
location of my localhost web service. Since I am using localhost and not
"http://Sirit/ETTM/", don't I also need to change that as well? So I think the
first line above should have an address of
"http://localhost:8080/axis/services/TZCService" or would it be
"http://localhost:8080/axis/TZCService"?
I am successfully able to access my web service in the browser via:
http://localhost:8080/axis/services/TZCServiceSoap?method=getTransactions
Thanks for your help,
Jan
-----Original Message-----
From: Ferruh Zamangoer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 06, 2005 8:07 AM
To: [email protected]
Subject: AW: BeanDeserializer exception.
Janet don't need to edit the URL's, if you test the services on localhost. If
you deploy your service on a another server. Then you have to set the endpoint
of the service otherwise you can use localhost. The endpoint you can set at
your Locator class.
-----Ursprüngliche Nachricht-----
Von: Miller, Janet [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 6. Juli 2005 14:04
An: [email protected]
Betreff: RE: BeanDeserializer exception.
Bo,
I'm doing the same thing, but can't even access my web service at all. Didn't
you also have to modify the Locator, Skeleton, and Stub classes to change the
address/url for your web service? If so, what did you change them to? I'm
having trouble trying to figure out what the urls should be.
Jan
-----Original Message-----
From: Bo Hu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 06, 2005 5:20 AM
To: [email protected]
Subject: BeanDeserializer exception.
Hello,
I am developing a axis web service based on a .wsdl file.
I used WSDL2Java generate both server and client side code, and then, modified
implementation the add the actual service. after that, used deploy.wsdd
generated to deploy the service on a tomcat server. then, I used a client to
test my server, on the server side, I can see the soap message been sent, but
on the client side, i got this exception:
Exception thrown:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName:
localhost.axis.services.RePower.MessageBaseType
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName:
localhost.axis.services.RePower.MessageBaseType
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeseriali
zer.java:125)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeseriali
zer.java:111)
at
localhost.axis.services.RePower.MessageBaseType.getDeserializer(MessageB
aseType.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(Base
DeserializerFactory.java:176)
at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(B
aseDeserializerFactory.java:117)
at
org.apache.axis.encoding.DeserializationContextImpl.getDeserializer(Dese
rializationContextImpl.java:466)
at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:289)
at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:963)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
198)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:722)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
at org.apache.axis.client.Call.invoke(Call.java:2272)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
localhost.axis.services.RePower.RePowerBindingStub.topUp(RePowerBindingS
tub.java:265)
at localhost.axis.services.RePower.Tester.main(Tester.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.ja
va:125)
at
org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.ja
va:111)
at
localhost.axis.services.RePower.MessageBaseType.getDeserializer(MessageB
aseType.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(Base
DeserializerFactory.java:176)
at
org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(B
aseDeserializerFactory.java:117)
at
org.apache.axis.encoding.DeserializationContextImpl.getDeserializer(Dese
rializationContextImpl.java:466)
at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:289)
at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:963)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
198)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:722)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
at org.apache.axis.client.Call.invoke(Call.java:2272)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)Exception
cause: null end
at
localhost.axis.services.RePower.RePowerBindingStub.topUp(RePowerBindingS
tub.java:265)
at localhost.axis.services.RePower.Tester.main(Tester.java:96)
somebody please help me since I am working on it for weeks, and can not find
the cause.
thanks a lot.
Bo.
BH