• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Type Number in WO WebServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Type Number in WO WebServices


  • Subject: Type Number in WO WebServices
  • From: Fabrice Pipart <email@hidden>
  • Date: Fri, 13 Apr 2007 17:24:28 +0200

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Type Number in WO WebServices
      • From: Robert Walker <email@hidden>
    • Re: Type Number in WO WebServices
      • From: Robert Walker <email@hidden>
  • Prev by Date: Re: Microsoft SQL Server and random JDBCAdaptor "failed to provide new primary keys for entity" error
  • Next by Date: Re: What is wrong with this code?
  • Previous by thread: Re: Microsoft SQL Server and random JDBCAdaptor "failed to provide new primary keys for entity" error
  • Next by thread: Re: Type Number in WO WebServices
  • Index(es):
    • Date
    • Thread