2016-11-16 28 views
0

をお読みください。WSO2 ESB WstxEOFExceptionは、私はこのようなWSO2でAPIのリソースを持っている住所エンドポイント

<?xml version="1.0" encoding="UTF-8"?> 
<api context="/akademik" name="GetListStudent" xmlns="http://ws.apache.org/ns/synapse"> 
<resource methods="GET" uri-template="/students"> 
    <inSequence> 
     <header scope="default"> 
      <m:complexHeader xmlns:m="http://org.synapse.example"> 
       <property key="SOAPAction" value="getListStudent"/> 
       <property key="Content-Type" value="text/xml"/> 
      </m:complexHeader> 
     </header> 
     <send> 
      <endpoint> 
       <address format="soap11" uri="http://localhost:8080/AkademikSOAP/Service?wsdl"/> 
      </endpoint> 
     </send> 
    </inSequence> 
    <outSequence> 
     <send/> 
    </outSequence> 
    <faultSequence/> 
</resource> 

とのwsdl:https://dl.dropboxusercontent.com/u/49439028/Service.xml

私はそれはのAPIにアクセスしよう

を示し
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/> 
<S:Body> 
    <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope> 
     <faultcode>S:Client</faultcode> 
     <faultstring>Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog 
at [row,col {unknown-source}]: [1,0]</faultstring> 
    </S:Fault> 
</S:Body> 

しかし、私はwso2からwsdlを試してみるとsample wsdlは完璧に働いています

何が起こりますか? これを修正するにはどうすればよいですか? ?

アドレスエンドポイントと

答えて

0

、あなたはなるあなたのURIの末尾にWSDLを削除する必要があります。私はそれを変更したhttp://localhost:8080/AkademikSOAP/Service

+0

、そしてあなたが「APIにアクセスしようとするとエラーがまだ同じ –

+0

ですあなたはメッセージを送信し、ContentTypeはペイロードに従って設定されます:xmlプロローグ(バージョン、エンコーディング)と完全なsoapエンベロープ/ボディを持つsoap11メッセージのtext/xml? –

関連する問題