I just copy the <service> chunk out of the deploy.wsdd file and copy it into the server-config.wsdd file. Much simpler ;o)

 

Brian Davis

Software Developer

JMM Ventures


From: Marika Ludmann [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 16, 2005 10:11 AM
To: [EMAIL PROTECTED]
Subject: Service class?

 

I just started to learn about WebServices (with Axis)

 

I am given wsdl files, and based on these I need to create client code and services.

I have no trouble creating the client code.

 

However when it comes to services I am a bit lost. I used the WSDL2Java tool, to create my classes.

Now I am trying add my services to the server-config.wsdd

 

I am not sure which is the class I need to add as my service. Is it MyService OR MyServiceSoap OR MyServiceSoapImpl

I figured it must be MyServiceSoapImpl

 

So added to the server-config.wsdd

 

<service name="MyServiceSoap" provider="java:RPC">

            <parameter name="className" value="uk.ac.gre.atc.Services.MyServiceSoapSkeleton"/>

             <parameter name="allowedMethods" value="*"/>

             <beanMapping qname="ns:MyBean" xmlns:ns="http://some..."

                                     languageSpecificType="java:myPackage.MyBean"/>

</service>

 

Is this correct?

 

It is sort of working.

 

I have a method in my service, like myMethod(AnObject [] obj)

1. When the service method is called and the obj = null; IT WORKS

 

2. However, when the service is called and obj = someValue, I get the error:

 

Soap exception, the server was unable to process the request

System.nullReferenceException, Object reference not set to an instance of an object

 

 

I know it is a long shot, but anyone knows where I should start looking for the problem?

 

Thank you

 

Marika

 

 

 

Marika Ludmann

KTP Associate

Zeraxis - University of Greenwich

 

Reply via email to