• 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: Using String in SOAP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using String in SOAP


  • Subject: Re: Using String in SOAP
  • From: "Daniele Corti" <email@hidden>
  • Date: Thu, 22 Feb 2007 15:11:02 +0100



2007/2/22, WIESEN Bruno <email@hidden>:
Hello,

I made a String with XML in it...This String is transmitted to a SOAP server which don't recognize letters between " ".
So this server doesn't know what action I want to do...It gives me an error !
Any idea?

String msg= "<?xml version=\"1.0\" encoding=\"ISO-8859-2\"?>";
msg+="<AuthentificationRequest action="" ;
msg+="<LoginCredentials>" ;
msg+= "<SalesRegion>" + SalesRegion + "</SalesRegion>";
msg+="<AccountNumber>" + AccountNumber + "</AccountNumber>" ;
msg+= "<UserName>" + UserName + "</UserName>";
msg+="<UserPassword>" + UserPassword + "</UserPassword>" ;
msg+= "</LoginCredentials>";
msg+="</AuthentificationRequest>" ;

Thank you !

Bruno.

Hi Bruno,
   I'm not sure, but try using \u0022 for " maybe the server translates the " in your string different from  0x0022 Hexadecimal, so it doesn't see it as an UNICODE QUOTATION MARK.
Or maybe you can try to use the javax.xml packages to generate the xml DOM and obtain it as a string after

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (



--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden
 _______________________________________________
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: 
 >Using String in SOAP (From: WIESEN Bruno <email@hidden>)

  • Prev by Date: webservices message based?
  • Next by Date: Re: Using String in SOAP
  • Previous by thread: Using String in SOAP
  • Next by thread: Re: Using String in SOAP
  • Index(es):
    • Date
    • Thread