Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/354.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java SOAPResponse对Marshall的响应-预期元素为<;{}请求>;_Java_Soap - Fatal编程技术网

Java SOAPResponse对Marshall的响应-预期元素为<;{}请求>;

Java SOAPResponse对Marshall的响应-预期元素为<;{}请求>;,java,soap,Java,Soap,我想从SOAPResponse映射对象,所以,我使用的是Marshall,但有一个错误 回应 <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header></env:Header> <env:Body> <ns1:cancelShipmentResponse xmlns:ns1='http://yurticikargo

我想从SOAPResponse映射对象,所以,我使用的是Marshall,但有一个错误

回应

<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header></env:Header>
<env:Body>
    <ns1:cancelShipmentResponse
        xmlns:ns1='http://yurticikargo.com.tr/ShippingOrderDispatcherServices'
        xmlns:ns2='http://yurticikargo.com.tr/ShippingOrderDispatcherServices'
        xmlns:ns3='http://yurticikargo.com.tr/WSExceptions/'>
        <ShippingOrderResultVO>
            <outFlag>1</outFlag>
            <outResult>Yurtiçi Kargo sisteminde kayıtlı TR kullanıcı adlı bir kullanıcı yok!</outResult>
            <errCode>1625</errCode>
            <count>0</count>
            <senderCustId>0</senderCustId>
        </ShippingOrderResultVO>
    </ns1:cancelShipmentResponse>
</env:Body></env:Envelope>
我的密码

JAXBContext jc = JAXBContext.newInstance(CancelShipmentRequest.class);
        Unmarshaller unmarshaller = jc.createUnmarshaller();
        CancelShipmentRequest rc = (CancelShipmentRequest) unmarshaller.unmarshal(soapResponse.getSOAPBody());
JAXBContext jc = JAXBContext.newInstance(CancelShipmentRequest.class);
        Unmarshaller unmarshaller = jc.createUnmarshaller();
        CancelShipmentRequest rc = (CancelShipmentRequest) unmarshaller.unmarshal(soapResponse.getSOAPBody());