Tomcat5.5에 Axis2와 함께 게시 된 간단한 POJO 웹 서비스가 있습니다. ATL C++ 클라이언트에서 사용하려고하는데 실패합니다. C# 클라이언트와 동일한 작업을 수행합니다. 문제는 ATL 클라이언트가ATL C++ 클라이언트에서 Axis2 웹 서비스 호출
<soap:Body>< xmlns="http://fa.test.com/xsd"></></soap:Body></soap:Envelope>
공지 사항 중간에 잘못된 요소처럼 보이는 비누 몸을 보내는 것입니다. 는 전 C#이
<?xml version='1.0' encoding='utf-8'?>
의 헤더를 보내고 ATL 클라이언트가되지 않기 때문에이 UTF-8과 함께 할 수있는 뭔가가 생각한다. 또한 몇 가지 ATL SOAP 내부 구조를 살펴보면 구조에 szName과 szwName이라는 두 멤버가 있음을 알 수 있습니다. 첫 번째 요소는 비어 있고 요소를 생성하고, 두 번째 요소는 testResponse의 유효한 (?) 이름을 갖습니다 (호출하는 메서드는 "test"라고 함).
여기에서 어디로 가야할지 조언이 필요하십니까?
자세한 내용 : 전체 ATL 클라이언트에서 메시지 : Axis2를에서
POST /axis2/services/EnterpriseService.EnterpriseServiceHttpSoap11Endpoint/ HTTP/1.1
Content-Length: 304
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:test"
Accept: text/xml
Host: xxxxxxx
User-Agent: Microsoft-ATL-Native/8.00
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><soap:Body>< xmlns="http://fa.test.com/xsd"></></soap:Body></soap:Envelope>
응답 :
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 04 Nov 2008 15:31:57 GMT
Connection: close
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '>' (code 62); expected an element name.
at [row,col {unknown-source}]: [1,276]</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
아, 그리고 여기에 좋은 요청이 C#을 클라이언트에서 오는 :
POST /axis2/services/EnterpriseService.EnterpriseServiceHttpSoap11Endpoint/ HTTP/1.1
Via: 1.1 ANGEL-ISLAND
Content-Type: text/xml; charset=utf-8
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.1433)
Host: xxxxxxx:8080
SOAPAction: "urn:test"
Connection: Keep-Alive
Content-Length: 236
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body /></soap:Envelope>
C#의 경우 soap : body가 비어 있습니다.
더 자세히 설명해주세요 ... 중간에 잘못된 요소는 무엇입니까? C#은 어떤 헤더를 보냅니 까? 어떤 오류 메시지가 나타 납니까? –
위에 세부 정보를 게시하십시오. 가운데에있는 잘못된 요소는 ">"입니다. –