Dear Experts,
I have generated a proxy and testing it with special characters ampersand & as shown below
Username&Rebecca&Password
and I am receiving the following error.
The field URL is created as a String in SAP PO system and its mirror technical type in ECC is STRING.
When tested from SPROXY , it shows error "The value is incompatible with type g."
Please help to solve which data type I can use in PO to avoid the error due to special characters.
Regards
Rebecca...
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Hareesh,
I assume my queries were just little to understand the whole scenario. I am working on a scenario to call the JAVA rest web services from SAP.
The purpose of this field in ECC proxy is to append the text User&Password&DeptId to the static url i.e.http://jave32:neduk:7097/IntegrationServlet?action=
present in the SAP PI mapping. So when SAP PI tries to connect rest services , the whole url will look like this
http://java32:neduk:7097/IntegrationServlet?action=User&Password&DeptId
The value of User, Password and Dept Id will be captured during runtime in ECC. That's why I am testing in ECC and got this error.
I am in the initial stage of design and if you feel that you can share your input, it's heartily welcomed.
Regards...
Hi Rebecca
The & character is a predefined entity reference in the XML syntax. Refer to the link below:-
Therefore you cannot use it as-is within the content of an XML element tag. This will cause the whole XML to be invalid. To correctly represent the character & within an XML element tag, you need to replace it with & instead.
As Amit has mentioned, you are manually entering the XML data (which is invalid) when using the test proxy functionality.
Change the line to the below instead:-
<URL>Username&Rebecca&Password</URL>
Rgds
Eng Swee
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.