Home > database >  Pb invokes the Java cxfwebservice, how the targetNamespace Settings
Pb invokes the Java cxfwebservice, how the targetNamespace Settings

Time:10-20

Error:
Unexpected wrapper element getMembers found. Expected {http://service.mpgl.com/} getMembers.

The method is as follows:
 the soapconnection conn 
Mpglserviceport MPGL
Tns__inforesult info
Tns__getmembers search

Conn=create the soapconnection

Conn. CreateInstance (MPGL, 'mpglServicePort')
Conn. SetOptions (" SoapLog=~ "mySoapLog. Log ~" ")


Search. User. CenterCode='422'
Search.user.org anCode='00001'
Search.user.org anLevel='3'
Search. The user. The loginName='user'
The search, the user password='123456'

Search. Searchobj. JoinYear='2014'
Search. Searchobj. SearchType='0'
Search. Searchobj. SearchCode=code

Try
Info=MPGL. Getmembers (search). Ws_return
The catch (SoapException e)
Messagebox (" Error ", um participant etmessage ())
End the try

Destroy the conn

Return the info


Here is the generated log

 CLOSED 


REQUEST:
CLOSED
POST/API/services/MPGL HTTP/1.1
Host: xnh.csyinhua.com: 89
Connection: Keep Alive -
The user-agent: EasySoap++/0.6
The content-type: text/XML. Charset=utf-8
SOAPAction: "http://service.mpgl.com/#getMembers"
The Content - Length: 1571

XMLNS: E="http://schemas.xmlsoap.org/soap/envelope/"
XMLNS: A="http://schemas.xmlsoap.org/soap/encoding/"
XMLNS: s="http://www.w3.org/2001/XMLSchema-instance"
The XMLNS: y="http://www.w3.org/2001/XMLSchema"
E: encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" & gt;

S: type="ns1: getMembers
"XMLNS: ns1="http://service.mpgl.com/" & gt;
S: type="ns1: mpglUser & gt;"
S: type="y: string" & gt; 422 & lt;/centerCode>
S: type="y: string" & gt;
S: type="y: string" & gt; User
S: type="y: string" & gt;
S: type="y: string" & gt; 00001 & lt;/organCode>
S: type="y: string" & gt; 3 & lt;/organLevel>
S: type="y: string" & gt;
<"
S: type="y: string" & gt; 123456 & lt;/password>
S: type="y: string" & gt; S: type="y: string" & gt; S: type="y: string" & gt; S: type="y: string" & gt; S: type="y: string" & gt; S: type="y: string" & gt;

S: type="ns1: SearchOBJ & gt;"
S: type="y: string" & gt; 0
S: type="y: string" & gt; 103010006 & lt;/searchCode>
S: type="y: string" & gt;
<"
S: type="y: string" & gt;
S: type="y: string" & gt; 2014 & lt;/joinYear>
S: type="y: string" & gt; S: type="y: string" & gt; S: type="y: string" & gt; S: type="y: string" & gt; S: type="y: string" & gt;






RESPONSE:
HTTP/1.1 500 Internal Server Error
The content-type: text/XML. Charset=utf-8
The Content - Length: 302
Date: Fri, 14 Feb 2014 05:47:44 GMT
Connection: close
Server: unknown

Soap: Client Unexpected wrapper element getMembers found. Expected. {http://service.mpgl.com/} getMembers & lt;/faultstring> CLOSED
The Connection Disconnected

CodePudding user response:

There is an error parameters, carefully check it

CodePudding user response:

reference 1st floor lzp_lrp response:
parameter errors, carefully check the

Thank you for your answer, I'll check it well, but I think I should not, I don't know if the log inside SOAPAction: "http://service.mpgl.com/#getMembers" this # #, I call ws log of success, are not the # #

CodePudding user response:

There is a problem as I do, and http://scn.sap.com/thread/3376482

CodePudding user response:

The original poster hello, have the problem solved? I also met this tip, I don't know what reason be

CodePudding user response:

Upstairs not solved,

CodePudding user response:

Your problem solved?
  • Related