You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Savoy, Melinda" <Me...@texashealth.org> on 2011/02/24 16:31:31 UTC

Question on generated WSDL file

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]
  &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
- &lt;!--  Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.1-b01-.
  --&gt;
- &lt;!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.1-b01-.
  --&gt;
- &lt;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"&gt;
- &lt;types&gt;
- &lt;xsd:schema&gt;
  &lt;xsd:import namespace="http://jaxb.dev.java.net/array" schemaLocation="http://localhost:8080/RequisitionWS/req?xsd=1" /&gt;
  &lt;/xsd:schema&gt;
  &lt;/types&gt;
- &lt;message name="processWSValues"&gt;
 [b][color=red] &lt;part name="arg0" type="xsd:string" /&gt;
  &lt;part name="arg1" type="xsd:string" /&gt;
  &lt;part name="arg2" type="xsd:string" /&gt;
  &lt;part name="arg3" type="xsd:string" /&gt;
  &lt;part name="arg4" type="xsd:string" /&gt;
  &lt;part name="arg5" type="xsd:string" /&gt;
  &lt;part name="arg6" type="xsd:double" /&gt;
  &lt;part name="arg7" type="xsd:string" /&gt;
  &lt;part name="arg8" type="xsd:string" /&gt;
  &lt;part name="arg9" type="xsd:string" /&gt;
  &lt;part name="arg10" type="xsd:string" /&gt;
  &lt;part name="arg11" type="xsd:string" /&gt;
  &lt;part name="arg12" type="xsd:int" /&gt;
  &lt;part name="arg13" type="xsd:string" /&gt;
  &lt;part name="arg14" type="xsd:string" /&gt;[/color] [/b]
  &lt;/message&gt;
- &lt;message name="processWSValuesResponse"&gt;
  &lt;part xmlns:ns1="http://jaxb.dev.java.net/array" name="return" type="ns1:stringArray" /&gt;
  &lt;/message&gt;
- &lt;portType name="NonStockRequisitionService"&gt;
- [b][color=red]&lt;operation name="processWSValues" parameterOrder="arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 arg13 arg14"&gt;[/color][/b]
  &lt;input wsam:Action="http://service.requisition.ws.texashealth.org/NonStockRequisitionService/processWSValuesRequest" message="tns:processWSValues" /&gt;
  &lt;output wsam:Action="http://service.requisition.ws.texashealth.org/NonStockRequisitionService/processWSValuesResponse" message="tns:processWSValuesResponse" /&gt;
  &lt;/operation&gt;
  &lt;/portType&gt;
- &lt;binding name="NonStockRequisitionServiceBeanPortBinding" type="tns:NonStockRequisitionService"&gt;
  &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" /&gt;
- &lt;operation name="processWSValues"&gt;
  &lt;soap:operation soapAction="" /&gt;
- &lt;input&gt;
  &lt;soap:body use="literal" namespace="http://service.requisition.ws.texashealth.org/" /&gt;
  &lt;/input&gt;
- &lt;output&gt;
  &lt;soap:body use="literal" namespace="http://service.requisition.ws.texashealth.org/" /&gt;
  &lt;/output&gt;
  &lt;/operation&gt;
  &lt;/binding&gt;
- &lt;service name="NonStockRequisitionServiceBeanService"&gt;
- &lt;port name="NonStockRequisitionServiceBeanPort" binding="tns:NonStockRequisitionServiceBeanPortBinding"&gt;
  &lt;soap:address location="http://localhost:8080/RequisitionWS/req" /&gt;
  &lt;/port&gt;
  &lt;/service&gt;
  &lt;/definitions&gt;
[/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
MelindaSavoy@texashealth.org<ma...@texashealth.org>

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.