Page 1 of 1

About Question enthuware.ocejws.v6.2.327 :

Posted: Mon Apr 14, 2014 7:28 pm
by himaiMinh
In the WSIT tutorial Chapter 7, it says the server configuration file should be wsit-<package>.<Service>.xml
I think it should be wsit-<package>.<PortType>.xml , where <portType> is the name in the <portType> node in the WSDL.


If we have this :

Code: Select all

package ws.math;
@WebService
public interface Addition { ...}

package ws.math;
@WebService (endpointInterface="ws.math.Addition")

public class AddWS{...}
The server configuration file should be names wsit-ws.math.Addition as the portType name is now Addition instead of AddWS.

Re: About Question enthuware.ocejws.v6.2.327 :

Posted: Mon Apr 14, 2014 8:03 pm
by himaiMinh
I just tried that with my NetBean platform.
The wsit-<package>.<service>.xml where <service> is always the name of the SIB, not the portType of the WSDL.
This xml file is conformant to the WSDL, but it is a little bit different than a WSDL.

Code: Select all

package example;
@WebService
public interface Addition{..}

package example;
@WebService (endpointInterface="example.Addition")
public class Add implements Addition{...}
The WSDL will have this:

Code: Select all

<portType name = Addition > ....

 <Service name= AddService>
     <port name = AddPort>  ....
But the wsit-example.Add.xml will have this :

Code: Select all

 <portType name = Add> 

 <Service name = AddService>
       <port name = AddPort>