Thanks, Lachlan.

After spending far to much time on this, and failing, I used the BFI approach and sent the request using URLConnection and parsed the result myself. That's working, but somewhere down the track I'd like to revisit this and do it the "right" way. I'll check out the link you gave.

If anybody is interested in my hacked together code for Telesign I'll happily supply it. It's not WO-specific any more.

I'll keep in mind the URL/URN thing, but it was definitely receiving the real XML and trying to parse it.

Regards
Thomas

On 07/03/2008, at 7:19 AM, Lachlan Deck wrote:

Hi Thomas,

On 06/03/2008, at 10:09 AM, Thomas wrote:

This is my first attempt at consuming complex types. I've done simple types in the past successfully, but I'm stuck when trying to deserialize the result of a Telesign call. This is a commercial service that rings a given phone number and speaks some code so the called person can enter the code in a web form to prove that they are at that phone.

Interesting.

I am successfully causing phone calls to happen, but failing to parse the SOAP result.

The WSDL for this service is at the bottom. I have made classes for some important elements specified in the WSDL, (with getters and setters for their attributes):

Call ( ReferenceID, APIErrorResponse)

APIErrorResponse ( Code, Message )

These two classes are registered with code like this:

        qName = new QName("https://www.telesign.com/api/";, "Call");

Hmm. QName expects a URN rather than a URL afaik.

See 'Dynamic Proxy Client Example' here:
https://cis.med.ucalgary.ca/http/java.sun.com/j2ee/1.3/docs/tutorial/doc/JAXRPC4.html

with regards,
--

Lachlan Deck





_______________________________________________
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