Hi!

I have for five hours tried to make this work without success. Can anyone help me?

 

Here is my java classes:

 

package sailviewserver;

 

public class SailviewServer {

 

��� /** Creates a new instance of SailviewServer */

��� public SailviewServer() {

��� }

 

��� public PositionReport[] getPositionReport()

��� {

������� PositionReport[] result = new PositionReport[2];

 

������� result[0] = new PositionReport(1, 0);

������� result[1] = new PositionReport(1, 1);

 

������� return result;

��� }

}

 

 

package sailviewserver;

 

public class PositionReport {

 

��� float latitude;

��� float longitude;

 

��� public PositionReport()

��� {

��� }

 

��� /** Creates a new instance of PositionReport */

��� public PositionReport(float latitude, float longitude) {

������� this.latitude = latitude;

������� this.longitude = longitude;

��� }

 

��� public String hello()

��� {

����������� return “hello”;

��� }

 

��� public void setLatitide( float latitude )

��� {

������� this.latitude = latitude;

��� }

 

��� public void setLongitude( float longitude )

��� {

������� this.longitude = longitude;

��� }

 

 

��� public float getLatitude()

��� {

������� return this.latitude;

��� }

 

��� public float getLongitude()

��� {

������� return this.longitude;

��� }

 

}

 

Here is my deploy.wsdd file:

 

<deployment xmlns="http://xml.apache.org/axis/wsdd/"

����������� xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

����������� <service name="SailviewServer" provider="java:RPC">

����������������������� <namespace>http://www.soapinterop.org/dealService</namespace>

����������� ����������� <parameter name="className" value="sailviewserver.SailviewServer"/>

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

����������������������� <beanMapping ???????????????? />

����������� </service>

</deployment>

 

The webservice is deployed fine. I can use the hello method! But when I try to use the getPositionReport method I get an exception saying that I have no srializer registered for PositionReport. I think I should use <beanMapping> but I haven’t been able to work. If that’s the case…how should the beanMapping tag look like? If not…what else should I try!

 

/Peter

 

Reply via email to