Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spaces Allowed?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Spaces Allowed?
Miscellaneous
Thread ID:
01320606
Message ID:
01320606
Views:
57
Hi Gang!

I am writing some code to access a webservice (that I didn't write and I have a hard time getting any help from the programmers who wrote it).

I have to send over 2 strings separated by at least one space to differentiate them.

STRING1 STRING2

When I create string1 by concatenating many small strings together (the data to send over... e.g. sFirstName, sLastName, etc.) and there are no spaces in it, then the webservice sends back to me a file with the results of the transmission for me to parse.

Good.

But when the small strings that makeup STRING1 have at least 1 space in it, then the webservice does not send me a return file to parse.

If I go in an do a string translate and replace the spaces with an underscore, then the webservice sends me the return file.

I am assuming that the EXTRA space(s) is confusing the webservice into thinking that the string AFTER the first space is STRING2, which it is not.

Also, are spaces allowed to be sent over to webservices or not?

here is an example of the two strings....
https://www.dwhouse.com/abc/abc.ASMX/mywebservice?
sLabel=12345&sNABP=0000240&sLast=Smith&sFirst=John&sAddress1=&sAddress2=&sCity=&sState=&sZi
p=&sPhone=&sDOB=&sAnniversary=&sAcctNum=&sFS=&sFSSuffix=&sPatRn=&sEmail=   C:\POS\term_08
\2008053009241878.FRQ
Thanks....
Tommy Tillman A+ NetWork+ MCP
Next
Reply
Map
View

Click here to load this message in the networking platform