JAX-WS member not shown

I will try to make this question as clear as possible.

I have a Java EAR project file with several JAX-WS web services.

Each web service has an element that imports an XSD schema file.

If I access the wsdl file in the project, the element is present.

If I access the same wsdl from the client (browser), the item is not displayed.

Does anyone know why this is happening?

WSDL from project:

...
  // The following lines <types> ate miissing on the WSDL when accessed from the client (browser)
  <types>
    <xsd:schema>
      <xsd:import namespace="http://xxxxx.call/" schemaLocation="Callxxxxx_schema.xsd"/>
    </xsd:schema>
  </types>
  ...
  <service name="Call_xxxxxx">
    <port name="Call_xxxxxPort" binding="tns:Call_xxxxxPortBinding">
      <soap:address location="http://srv-can01-dev.teste.lab:9081/MyModule/Call_xxxxx"/>
    </port>
  </service>
  ...

(same) WSDL from client:

...
  //<types> part missing when accessing from the client (browser)
  ...
  <service name="Call_xxxxx">
    <port name="Call_xxxxxPort" binding="tns:Call_xxxxxPortBinding">
      <soap:address location="http://machineIp:9081/MyModule/Call_xxxxx"/>
    </port>
  </service>
  ...
+3
source share
1 answer

@RedEagle: try a few things and let me know the result: - i) Rename the .wsdl extn file to a .xml file and open it in your browser. See if it looks good.

ii) . " " , , .

iii) , HTML XML.

iv) , <xsd:import>, XML-/ WSDL , .

0

All Articles