Re: Using String in SOAP
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