2011-12-27 4 views
0

나는 nusoap을 사용하여 PHP로 비누 서비스를 작성했습니다. 그것은 PHP에서 쓴 테스트 클라이언트와 잘 작동하지만, 우리 고객은 vb.net에서 클라이언트를 썼고 작동하지 않습니다. 오류는 보이지 않지만 서비스가 요청을 올바르게 구문 분석하지 않습니다.VB.net 비누 클라이언트가 PHP 비누 서버에서 작동하지 않습니다.

nusoap이 WSDL을 생성하도록하고 있습니다. 내가 보낸 메시지를 그의 메시지 중 하나와 비교하면, 봉투에 약간의 차이가 있음을 알 수 있습니다.하지만 문제가 저의 목적인지 또는 그의 문제인지 확실하지 않습니다.

다음은 좋은 응답과 나쁜 응답입니다.

좋은 :

<?xml version="1.0" encoding="ISO-8859-1"?> 
<SOAP-ENV:Envelope 
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> 

    <SOAP-ENV:Body> 
    <ns6361:uploadDocument xmlns:ns6361="http://tempuri.org"> 
     <__numeric_0> 
     <firmCode xsi:type="xsd:string">999*site1</firmCode> 
     <docID xsi:type="xsd:string">id</docID> 
     <docType xsi:type="xsd:string">tif</docType> 
     <document xsi:type="xsd:string">SUkqAMpDAAAmoFy..lots of data omitted here</document> 
     </__numeric_0> 
     </ns6361:uploadDocument> 
    </SOAP-ENV:Body> 
    </SOAP-ENV:Envelope> 

나쁜 :

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope 
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
    xmlns:tns="http://www.inassist.com/docupload" 
    xmlns:types="http://www.inassist.com/docupload/encodedTypes" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 

    <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
    <q1:uploadDocument xmlns:q1="urn:server"> 
     <firmCode xsi:type="xsd:string">999*site1</firmCode> 
     <docID xsi:type="xsd:string">0000007126</docID> 
     <docType xsi:type="xsd:string">PDF</docType> 
     <document xsi:type="xsd:base64Binary">JVBERi0xLj..data omitted...</document> 
    </q1> 
    </soap:Body> 
</soap:Envelope> 

사람이 올바른 방향으로 날 가리시겠습니까? 고맙습니다.

답변

0

가장 큰 문제는 좋은 대답으로 <__numeric_0> 태그가 될 것입니다.

이 태그에 대한 필요성을 제거하기 위해 끝을 수정할 수 있습니다 경우

후 유일한 다른 가능한 문제는 잘못된 응답 q1과 좋은 문서 ns6361uploadDocument에 대한 네임 스페이스처럼 보인다.

+0

감사합니다. 저를 살펴 봅시다. <_numeric_0> 태그는 nusoap에 의해 자동으로 생성되었지만, 어떤 수정이 가능한지 알 수 있습니다. 고맙습니다. – user1118374