About Question enthuware.ocejws.v6.2.327 :

Moderators: Site Manager, fjwalraven

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

About Question enthuware.ocejws.v6.2.327 :

Post 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.

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post 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>

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests