Home > database >  Webservice pb12.5 development always automatically add <string XMLNS="http://tempurl.org&quo
Webservice pb12.5 development always automatically add <string XMLNS="http://tempurl.org&quo

Time:09-15

Webservice pb12.5 development always automatically add & lt; String XMLNS="http://tempurl.org" & gt; & lt;/string> How can you get rid of?
This excuse is needed with the other programs cannot call other programs call

CodePudding user response:

Where are you calling? You can write a string to intercept, if is a Java call can use XML2listbean directly convert line,

CodePudding user response:

Calls to other programmers, others give me using c # interface document is they want to call my webservice and somebody else only

& lt; ? The XML version="1.0" encoding="utf-8"?>
& lt; Root>
& lt; Name> Name & lt;/name>
& lt; Id> 001 & lt;/id>
& lt;/root>

People don't recognize
& lt; ? The XML version="1.0" encoding="utf-8"?>
& lt; String XMLNS="http://tempurl.org" & gt;
& lt; Root>
& lt; Name> Name & lt;/name>
& lt; Id> 001 & lt;/id>
& lt;/root>
& lt;/string>

Said I have a problem, the data returned each great god help,
I this & lt; String XMLNS="http://tempurl.org" & gt; As long as the return is automatically added,

CodePudding user response:


Use satrda content can add
Ls_data=' & lt; Root> & lt; Name> Name & lt;/name> & lt; Id> 001 & lt;/id> & lt;/root> '
Lb_body=n_api. Of_toutf8 (as_json)
N_api. ResponseWrite (al_context lb_body, len (lb_body))
Refer to
https://blog.csdn.net/pcwe2002/article/details/53287965

CodePudding user response:

Don't want to use external plug-ins, PB itself can not solve this problem

CodePudding user response:

You try use the ref parameter as a result, rather than return to return
  • Related