Doug,
to avoid the overload of my _dummy_ emails (I'm so ashamed to overload
you), please ignore my previous emails since I find out why I was
getting that strange error about abstract class exception
(java.lang.AbstractMethodError).
My old service (service interface -> WSDL) was based on the service
interface NGINCareIF and the service implementation NGINCareImpl. And by
mistake I defined in jaxrpc-ri.xml this old names, when the new service
implementation was renamed in "wscompile -import" operation to
NGINCareIF_Impl!
I tested in a AXIS client and it works ok!
My problem now is how to generate the stubs for my client in sun's
jaxrpc development tools through a WSDL file!? I'm getting always a null
exception and it's thrown before connecting to server:
java.lang.NullPointerException
[java] at
com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:109)
[java] at
com.sun.xml.rpc.client.StreamingSenderState.<init>(StreamingSenderState.java:32)
[java] at
com.sun.xml.rpc.client.StreamingSender._start(StreamingSender.java:50)
[java] at
PT.ptinovacao.ngincare.service.NGINCareIF_Stub.createMSISDN(NGINCareIF_Stub.java:206)
[java] at
PT.ptinovacao.ngincare.test.TestNGINCare.test_createMSISDN(TestNGINCare.java:23)
...
To generate the client stubs, I first run the wscompile with -gen:client
and pointing to the config.xml. My test code is basic this:
"
Stub stub=(Stub)((new NGINCare_Impl()).getNGINCareIFPort());
stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,endpoint);
NGINCareIF ngincare=(NGINCareIF)stub;
Status s=ngincare.createMSISDN(
"user","password",
"961234567",1,"1234567891","1234","12345678",10000.0f);
System.out.println(s.getCode());
System.out.println(s.getMessage());
"
my configuration
----------------
config.xml:
"
<configuration xmlns="
http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl location="src/etc/NGINCare.wsdl"
packageName="PT.ptinovacao.ngincare.service"/>
"
jaxrpc-ri.xml:
"
<webServices
xmlns="
http://java.sun.com/xml/ns/jax-rpc/ri/dd"
version="1.0"
targetNamespaceBase="
http://www.ptinovacao.pt/services/ngincare/wsdl"
typeNamespaceBase="
http://www.ptinovacao.pt/services/ngincare/types"
urlPatternBase="/ngincare">
<endpoint
name="NGINCare"
displayName="NGINCare WebService"
description="NGINCare WebService CLIENT - NGIN"
interface="PT.ptinovacao.ngincare.service.NGINCareIF"
implementation="PT.ptinovacao.ngincare.service.NGINCareIF_Impl"
model="/model.xml.gz"/>
<endpointMapping
endpointName="NGINCare"
urlPattern="/service/NGINCareIF"/>
"
So, could you finally assist me on this? I would be very grateful.
BTW, when I click on this link
http://localhost:8080/ngincare/service/NGINCareIF?WSDL on my web service
information, I got this error: 404 Not Found: Invalid request
Where should I put my wsdl in my web?
thanks,
Pedro Salazar