2014-07-08 4 views
0

BodyIn 응답을 받으면 Android에서 ksoap을 사용하여 SOAP 요청에 잘못된 내용이 있습니다. 응답 덤프 = 필요한 데이터와 올바른 XML, 및 XMLPullParser 예외 :Android SOAP null 응답, 덤프 = 올바른 XML, 필요한 데이터 포함, XMLPullParser 예외

expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <{https://schemas.xmlsoap.org/soap/envelope/}s:Envelope> 

요청 덤프 :

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"> 
    <v:Header /> 
    <v:Body> 
    <XMLDataGet xmlns="http://tempuri.org/"> 
     <entity>persona</entity> 
     <last_update_date>20140101</last_update_date> 
     <country>UA</country> 
     <user>someuser</user> 
    </XMLDataGet> 
    </v:Body> 
</v:Envelope> 

답변

0

문제가 <s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">을 포함 응답 XML에 있었다하지만 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">로에게이 있어야한다.

그래서 나는의 InputStream을 잡기 http

+0

내 코드와 지금이 같은 문제가 있습니다와 https를 대체하여 ... 당신이 그렇게 내가 그것을 볼 수 나에게 코드를 보낼 수있는 방법이 있나요한다는 고정 내가 갇혀있어 무슨 일인지 알아낼 수 없다 :/ – bbesase

+0

@ bbesase pls stackoverflow 여기에 질문을 게시하고 내가 필요로하는 모든 정보를 대답 할게요 –

+0

지연에 대한 모든 죄송합니다 주말. http://stackoverflow.com/questions/24919148/android-org-xmlpull-v1-xmlpullparserexception-error – bbesase