Java SOAPResponse对Marshall的响应-预期元素为<;{}请求>;
我想从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
<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());