Sure.
The wsld is as below...testOrder is of type TestOrder which extends Order and implements TestOrderIF interface.In the sessionbean I have a method placeOrder which excepts TestOrderIF and returns TestOrderIF (I have doubts about the validity of this operation.But being on the dumb side of the intellectual world I did it anyways..Can we trade interfaces like that?)...The only reason I think I am doing this is to restrict the client access to the methods in the objects.
---------------------------------------------------------------------------
WSDL
---------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<wsdl

efinitions targetNamespace="http://sb.example.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://sb.example.com" xmlns:intf="http://sb.example.com" xmlns:tns2="http://vo.example.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://sb.example.com" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://sb.example.com" xmlns:intf="http://sb.example.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<element name="placeOrder">
<complexType>
<sequence>
<element name="testOrder" nillable="true" type="xsd:anyType"/>
</sequence>
</complexType>
</element>
<element name="placeOrderResponse">
<complexType>
<sequence>
<element name="placeOrderReturn" nillable="true" type="xsd:anyType"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="placeOrderRequest">
<wsdl

art element="intf

laceOrder" name="parameters"/>
</wsdl:message>
<wsdl:message name="placeOrderResponse">
<wsdl

art element="intf

laceOrderResponse" name="parameters"/>
</wsdl:message>
<wsdl

ortType name="Test">
<wsdl

peration name="placeOrder">
<wsdl:input message="intf

laceOrderRequest" name="placeOrderRequest"/>
<wsdl

utput message="intf

laceOrderResponse" name="placeOrderResponse"/>
</wsdl

peration>
</wsdl

ortType>
<wsdl:binding name="TestSoapBinding" type="intf:Test">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl

peration name="placeOrder">
<wsdlsoap

peration soapAction=""/>
<wsdl:input name="placeOrderRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl

utput name="placeOrderResponse">
<wsdlsoap:body use="literal"/>
</wsdl

utput>
</wsdl

peration>
</wsdl:binding>
<wsdl:service name="TestService">
<wsdl

ort binding="intf:TestSoapBinding" name="Test">
<wsdlsoap:address location="http://localhost:9105/TestRouter/services/Test"/>
</wsdl

ort>
</wsdl:service>
</wsdl

efinitions>
---------------------------------------------------------------------------
Simple Method Call
---------------------------------------------------------------------------
public TestOrderIF placeOrder(TestOrderIF testOrder)
{
System.out.println("Test Field1 : " + testOrder.getTestField1());
System.out.println("Test Field2 : " + testOrder.getTestField2());
testOrder.setTestField1("Some String");
testOrder.setTestField2("Some String");
testOrder.setTestField3("Some String");
return testOrder;
}
---------------------------------------------------------------------------
funny thing is, in wsdl it nowhere mentions nothing like interface and the client(sample jsps) generated by websphere is kind of weird..It has input fields for package,specification vendor,specification date etc etc...Please help.
Thank you.
Kuldeep