Hi list !

I beg for some help because I think I will get crazy about this issue.
I have a class registered as a WebService :
WOWebServiceRegistrar.registerWebService(AssistantResponder.class, true);

I have a complex type registered with Bean Serializer and deserializer :
QName qname = new QName("http://client.easyshadow.com";, "MyClass");
WOWebServiceRegistrar.registerFactoriesForClassWithQName(new BeanSerializerFactory(com.easyshadow.client. MyClass.class, qname), new BeanDeserializerFactory(com.easyshadow.client. MyClass.class, qname), com.easyshadow.client. MyClass.class, qname);

I can access the WebService without problem from a Cocoa app.
I thought it would be even easier to access the same Web Service from another WO app.
I tried to base my code on Apple docs :
http://developer.apple.com/documentation/WebObjects/Web_Services/ Web_Services/chapter_4_section_3.html

No luck.

Yes I can list all the methods that can be called.
But as soon as I try to invoke one, I get this :
javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Type Number is referenced but not defined.

Here is the header of my generated wsdl file :
<wsdl:definitions targetNamespace="http://192.168.41.102/cgi-bin/ WebObjects/EasyMediaOnline.woa/-2007/ws/.AssistantResponder" xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:impl="http://192.168.41.102/cgi-bin/WebObjects/ EasyMediaOnline.woa/-2007/ws/.AssistantResponder" xmlns:intf="http://192.168.41.102/cgi-bin/WebObjects/ EasyMediaOnline.woa/-2007/ws/.AssistantResponder" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns2="http://client.easyshadow.com";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

<wsdl:types>
...
<complexType name="MyClass">
        <sequence>
                <element name="duration" nillable="true" type="xsd:anyType"/>
                <element name="height" nillable="true" type="tns3:Number"/>
                ...
        </sequence>
</complexType>



Note that tns3 is referenced but never "defined"...
Is this a WO bug when generating the wsdl?
I am not a WebService expert, so I may have misunderstood something...


Regards

Fabrice Pipart

www.easyshadow.com

International Corporate Consulting
Palais de la Scala
1 avenue Henri Dunant
Suite 1155
MC - 98000 Monaco

Skype: fabrice.pipart
Tel.  +377 97 98 21 04 (direct)
Fax. +377 97 70 88 07


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to