I am working on my XP local box trying to test a web service tutorial and in 
the WSDL file I am showing param names that are not descriptive of what is 
needed to be passed in by those who will ultimately be trying to consume the 
web service.  My understanding is that the names in my method should be denoted 
in the PART NAME under the message name and PARAMS below which are highlighted 
in RED.

I am new to web services and would really appreciate any help/direction.  Thank 
you.

The WSDL file, http://localhost:8080/RequisitionWS/req?wsdl, looks like:

[code]
  <?xml version="1.0" encoding="UTF-8" ?>
- <!--  Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version 
is JAX-WS RI 2.2.1-b01-.
  -->
- <!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version 
is JAX-WS RI 2.2.1-b01-.
  -->
- <definitions 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 xmlns:wsp="http://www.w3.org/ns/ws-policy"; 
xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"; 
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:tns="http://service.requisition.ws.texashealth.org/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
targetNamespace="http://service.requisition.ws.texashealth.org/"; 
name="NonStockRequisitionServiceBeanService">
- <types>
- <xsd:schema>
  <xsd:import namespace="http://jaxb.dev.java.net/array"; 
schemaLocation="http://localhost:8080/RequisitionWS/req?xsd=1"; />
  </xsd:schema>
  </types>
- <message name="processWSValues">
 [b][color=red] <part name="arg0" type="xsd:string" />
  <part name="arg1" type="xsd:string" />
  <part name="arg2" type="xsd:string" />
  <part name="arg3" type="xsd:string" />
  <part name="arg4" type="xsd:string" />
  <part name="arg5" type="xsd:string" />
  <part name="arg6" type="xsd:double" />
  <part name="arg7" type="xsd:string" />
  <part name="arg8" type="xsd:string" />
  <part name="arg9" type="xsd:string" />
  <part name="arg10" type="xsd:string" />
  <part name="arg11" type="xsd:string" />
  <part name="arg12" type="xsd:int" />
  <part name="arg13" type="xsd:string" />
  <part name="arg14" type="xsd:string" />[/color] [/b]
  </message>
- <message name="processWSValuesResponse">
  <part xmlns:ns1="http://jaxb.dev.java.net/array"; name="return" 
type="ns1:stringArray" />
  </message>
- <portType name="NonStockRequisitionService">
- [b][color=red]<operation name="processWSValues" parameterOrder="arg0 arg1 
arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 arg13 
arg14">[/color][/b]
  <input 
wsam:Action="http://service.requisition.ws.texashealth.org/NonStockRequisitionService/processWSValuesRequest";
 message="tns:processWSValues" />
  <output 
wsam:Action="http://service.requisition.ws.texashealth.org/NonStockRequisitionService/processWSValuesResponse";
 message="tns:processWSValuesResponse" />
  </operation>
  </portType>
- <binding name="NonStockRequisitionServiceBeanPortBinding" 
type="tns:NonStockRequisitionService">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="rpc" 
/>
- <operation name="processWSValues">
  <soap:operation soapAction="" />
- <input>
  <soap:body use="literal" 
namespace="http://service.requisition.ws.texashealth.org/"; />
  </input>
- <output>
  <soap:body use="literal" 
namespace="http://service.requisition.ws.texashealth.org/"; />
  </output>
  </operation>
  </binding>
- <service name="NonStockRequisitionServiceBeanService">
- <port name="NonStockRequisitionServiceBeanPort" 
binding="tns:NonStockRequisitionServiceBeanPortBinding">
  <soap:address location="http://localhost:8080/RequisitionWS/req"; />
  </port>
  </service>
  </definitions>
[/code]

The interface is defined as follows:

[code]
//Service Endpoint Interface
@WebService
@SOAPBinding(style = Style.RPC)
public interface NonStockRequisitionService {

        @WebMethod String[] processWSValues(String changeTicketNum, String 
chargeToDeptCode, String deliverToDeptCode, String entityCode,
                        String GLAccountNum, String itemDesc1, double 
lineItemPrice, String logonId, String necCode, String purchDeptCode, String 
purchMeas,
                        String purchUnit, int qtyOrdered, String vendorCatNum, 
String vendorNum);
}
[/code]

The implementation bean looks like:

[code]
//Service Implementation Bean

@WebService(endpointInterface = 
"org.texashealth.ws.requisition.service.NonStockRequisitionService")
public class NonStockRequisitionServiceBean implements 
NonStockRequisitionService {

        // Required non-argument constructor
        public NonStockRequisitionServiceBean() {

        }

        @Override
        public String[] processWSValues(String changeTicketNum, String 
chargeToDeptCode, String deliverToDeptCode, String entityCode,
                        String GLAccountNum, String itemDesc1, double 
lineItemPrice, String logonId, String necCode, String purchDeptCode, String 
purchMeas,
                        String purchUnit, int qtyOrdered, String vendorCatNum, 
String vendorNum)
[/code]

Thank you.

Melinda Savoy
Sr. Programmer Analyst, ERP Systems
Innovative Technology Solutions
Texas Health Resources
600 E. Lamar Blvd, Ste 301, Arlington TX  76011
[email protected]<mailto:[email protected]>

Texas Health Resources: Arlington Memorial,
Harris Methodist and Presbyterian Hospitals
A shared mission and now a shared name.





The information contained in this message and any attachments is intended only 
for the use of the individual or entity to which it is addressed, and may 
contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from 
disclosure under applicable law.  If you are not the intended recipient, you 
are prohibited from copying, distributing, or using the information.  Please 
contact the sender immediately by return e-mail and delete the original message 
from your system.

Reply via email to