I wrote with CXF and spring combination, a service, service namespace is http://com.hospital/, Java calls when using the axis2 client, no problem, but in the process of using pb9 calls, all kinds of problems,
Currently stuck, error "unexpected return the content-type: text/HTML",
When there is an error, also didn't go to the service background, the method of
I write of pb code is as follows:
The SoapConnection conn_soap
Smsinterfaceserviceport smsport
Long rVal
String nameapace="http://com.hospital/"
Conn_soap=CREATE the SoapConnection
Smsport=CREATE smsinterfaceserviceport
RVal=conn_soap. CreateInstance (smsport, "smsinterfaceserviceport nameapace)
//messagebox (' hint: 'the string (rval))
If rVal & lt;> 0 then
Messagebox (' hint: ', 'to connect to the Internet URL error, error code: "+ string (rval))
Return
End the if
Tns__testresponse lst_result
The () smsport
The ()//lst_result=smsport
Destroy conn_soap
Destroy smsport
CodePudding user response:
String nameapace="http://com.hospital/"Change into WSDL address, the original set will not go to the server backstage is interrupted, after changing the address of the WSDL, is able to walk to the background, but prompt namespace error,
This is my print log:
REQUEST:
CLOSED
POST/* * * */webservice/SMSInterfaceService HTTP/1.1
Host: 192.168.0.120:8080
Connection: Keep Alive -
The user-agent: EasySoap++/0.6
The content-type: text/XML. Charset=utf-8
SOAPAction: "http://service.web.hospital.qazit.com/#test"
The Content - Length: 458
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;
"XMLNS: ns1="http://service.web.hospital.qazit.com/" & gt;
RESPONSE:
HTTP/1.1 500 Internal Server Error
Server: Apache - Coyote/1.1
The content-type: text/XML. Charset=utf-8
The Content - Length: 290
Date: Thu, 13 Apr 2017 07:32:00 GMT
Connection: close
The Connection Disconnected
CodePudding user response:
CXF server errorOrg, apache CXF. Interceptor. Faults: Unexpected wrapper element test found. The Expected test {http://service.web.hospital.qazit.com/}.
CodePudding user response:
Meet the same problem, can you tell me the original poster is how to solve