开发者

WSDL missing data type definitions

开发者 https://www.devze.com 2023-03-03 22:14 出处:网络
I am building a SOAP web service with JAX WS. One of the clients should be SAP. After developing my service ports directly in Java with NetBeans I tried to connect to the service usi开发者_如何学Cng t

I am building a SOAP web service with JAX WS. One of the clients should be SAP. After developing my service ports directly in Java with NetBeans I tried to connect to the service usi开发者_如何学Cng the WSDL XML file.

My problem is, that it is well defined but its missing datatype definitions. Is there a way to get the missing parts for the WSDL with NetBeans?

For example, one of my ports returns a complex data type which is a Java object called ReportResponse. It contains 2 Strings, a Boolean and an Integer field. The WSDL for this parts looks like this:

  <message name="reportResponse">
  <part name="parameters" element="tns:reportResponse" /> 
  </message>

The problem is that "tns:reportResponse" is not further defined in my WSDL file.


Please refer the .xsd file for your wsdl. There should be complex type definition to element"reportResponse". You can find the xsd .

If you load the wsdl to netbeans by url the case is jaxws can not find your xsd file. Best way is to download wsdl and xsd to your local folder and load them to netbeans.


Is it defined independently on a XSD? If so, you should use an import statement referencing your XSD URL...

0

精彩评论

暂无评论...
验证码 换一张
取 消