在 @RequestPayload 中获取到了 NULL 值。

huangapple go评论86阅读模式
英文:

getting NULL in @RequestPayload

问题

我正在使用Spring WS,我有一个已经生成的WSDL。

我的WSDL:
...

<xs:complexType name="invokeBoarding_Opera">
<xs:sequence>
<xs:element minOccurs="0" name="BoardingRequest" type="tns:BoardingRequest"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BoardingRequest">
<xs:sequence>
....
</xs:sequence>
</xs:complexType>

....

InvokelBoarding_Opera.java

@XmlRootElement(name = "invokelBoarding_Opera",namespace="http://boardingImpl.webservices.com/")
public class InvokeBoarding_Opera {
	private BoardingRequest BoardingRequest;

我尝试使用SOAP UI,但是我得到了NULL值。

英文:

I am using Spring WS and I have one WSDL,that was already generated.

My WSDL:
....

<xs:complexType name="invokeBoarding_Opera">
<xs:sequence>
<xs:element minOccurs="0" name="BoardingRequest" type="tns:BoardingRequest"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BoardingRequest">
<xs:sequence>
....
</xs:sequence>
</xs:complexType>

....

InvokelBoarding_Opera.java

@XmlRootElement(name = "invokelBoarding_Opera",namespace="http://boardingImpl.webservices.com/")
public class InvokeBoarding_Opera {
	private BoardingRequest BoardingRequest;

I was tried to from SOAP UI, but i am getting NULL values

答案1

得分: 1

我已将 Spring WS 更改为 Apache CXF。现在它运行良好。

英文:

I have changed spring ws to apache cxf. Now its working fine

huangapple
  • 本文由 发表于 2020年9月28日 20:12:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/64101968.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定