• 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
Re: Deserializing complex types when consuming web services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deserializing complex types when consuming web services


  • Subject: Re: Deserializing complex types when consuming web services
  • From: Thomas <email@hidden>
  • Date: Fri, 7 Mar 2008 09:17:53 +1100

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Deserializing complex types when consuming web services (From: Thomas <email@hidden>)
 >Re: Deserializing complex types when consuming web services (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Help with Double Action Method
  • Next by Date: How to get sub-component data up to parent
  • Previous by thread: Re: Deserializing complex types when consuming web services
  • Next by thread: State of WO Java Client
  • Index(es):
    • Date
    • Thread