Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

HOW TO CONSUME WEB SERVICE MADE IN PHP or .NET IN WITH NETBEANS 8.1 JAVA

3247631May 28 2016 — edited May 30 2016

HI...

I'm trying to consume a web service made in PHP, USING NETBEANS 8.1.

1.- I put in the url wizard and choose the style rpc

pastedImage_6.png

2.-

pastedImage_11.png

pastedImage_15.png

3.- At the end of the compilation, it does not recognize the methods declared in the Web service and send the next message:

Procesando la operación "agregar" que no se ajusta a WS-I con el estilo RPC y la codificación SOAP.

How can I solve this problem?

Thanks in advance..

Posdata:

Attached file wsdl.

// begin of file wsdl

<definitions targetNamespace="urn:Pedidos"><types><xsd:schema targetNamespace="urn:Pedidos"><xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/><xsd:complexType name="Pedido"><xsd:all><xsd:element name="id" type="xsd:integer"/><xsd:element name="Compra" type="xsd:integer"/><xsd:element name="FolCompra" type="xsd:integer"/><xsd:element name="Z4" type="xsd:string"/><xsd:element name="Proveedor" type="xsd:string"/><xsd:element name="Proveedor_dsc" type="xsd:string"/><xsd:element name="Secuencia" type="xsd:integer"/><xsd:element name="Sucursal" type="xsd:integer"/><xsd:element name="Fecha" type="xsd:string"/><xsd:element name="Pago" type="xsd:string"/><xsd:element name="Entrega" type="xsd:string"/><xsd:element name="Factura" type="xsd:string"/><xsd:element name="Suma" type="xsd:float"/><xsd:element name="Impuesto" type="xsd:float"/><xsd:element name="ImpFpcgc" type="xsd:float"/><xsd:element name="ImpIeps" type="xsd:float"/><xsd:element name="Total" type="xsd:float"/><xsd:element name="Total_Corp" type="xsd:float"/><xsd:element name="Suma_Corp" type="xsd:float"/><xsd:element name="Impuesto_Corp" type="xsd:float"/><xsd:element name="Estatus" type="xsd:string"/><xsd:element name="Obs" type="xsd:string"/><xsd:element name="Obs2" type="xsd:string"/><xsd:element name="ImpoRecep" type="xsd:float"/><xsd:element name="Abono" type="xsd:float"/><xsd:element name="Saldo" type="xsd:float"/><xsd:element name="Fe_Esperada" type="xsd:string"/><xsd:element name="Pedimento" type="xsd:string"/><xsd:element name="Aduana" type="xsd:string"/><xsd:element name="Procesado" type="xsd:string"/><xsd:element name="TotalFac" type="xsd:float"/><xsd:element name="Cve_Coma1" type="xsd:string"/><xsd:element name="Cve_Coma2" type="xsd:string"/><xsd:element name="Prov_Coma1" type="xsd:string"/><xsd:element name="Prov_Coma2" type="xsd:string"/><xsd:element name="COMAPed" type="xsd:string"/><xsd:element name="COMAPed2" type="xsd:string"/><xsd:element name="PathGen" type="xsd:string"/><xsd:element name="PathEnv" type="xsd:string"/><xsd:element name="Ruta" type="xsd:string"/><xsd:element name="ClienteW" type="xsd:string"/><xsd:element name="Suma_Fact" type="xsd:float"/><xsd:element name="Impuesto_Fact" type="xsd:float"/><xsd:element name="Total_Fact" type="xsd:float"/><xsd:element name="Suma_Rcbd" type="xsd:float"/><xsd:element name="Impuesto_Rcbd" type="xsd:float"/><xsd:element name="Total_Rcbd" type="xsd:float"/><xsd:element name="Fe_Pedido" type="xsd:string"/><xsd:element name="Hr_Pedido" type="xsd:string"/><xsd:element name="Fe_Tran" type="xsd:string"/><xsd:element name="Hr_Tran" type="xsd:string"/><xsd:element name="Fe_autoriz" type="xsd:string"/><xsd:element name="Hr_autoriz" type="xsd:string"/><xsd:element name="Fe_COMA" type="xsd:string"/><xsd:element name="Hr_COMA" type="xsd:string"/><xsd:element name="Fe_Confirm" type="xsd:string"/><xsd:element name="Hr_Confirm" type="xsd:string"/><xsd:element name="Fe_Fact" type="xsd:string"/><xsd:element name="Hr_Fact" type="xsd:string"/><xsd:element name="Fe_Rcbd" type="xsd:string"/><xsd:element name="Hr_Rcbd" type="xsd:string"/><xsd:element name="id_usuario" type="xsd:string"/><xsd:element name="id_fecha" type="xsd:string"/><xsd:element name="insert_user" type="xsd:string"/><xsd:element name="insert_time" type="xsd:string"/><xsd:element name="Tipo_Ped" type="xsd:string"/><xsd:element name="New_wstran" type="xsd:string"/><xsd:element name="Must_Conso" type="xsd:string"/><xsd:element name="Consolidado" type="xsd:string"/><xsd:element name="Fol_Consoli" type="xsd:string"/><xsd:element name="Fe_Consoli" type="xsd:string"/><xsd:element name="Hr_Consoli" type="xsd:string"/><xsd:element name="Consolidar" type="xsd:string"/><xsd:element name="EMailTda" type="xsd:string"/><xsd:element name="AvisoTda" type="xsd:string"/><xsd:element name="motivo" type="xsd:string"/><xsd:element name="CreateDate" type="xsd:string"/><xsd:element name="LastUpdate" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="Pedidos"><xsd:complexContent><xsd:restriction base="SOAP-ENC:Array"><xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Pedido[]"/></xsd:restriction></xsd:complexContent></xsd:complexType><xsd:complexType name="Detalle"><xsd:all><xsd:element name="id" type="xsd:integer"/><xsd:element name="Compra" type="xsd:integer"/><xsd:element name="Sucursal" type="xsd:integer"/><xsd:element name="pedido_id" type="xsd:integer"/><xsd:element name="producto" type="xsd:string"/><xsd:element name="producto_dsc" type="xsd:string"/><xsd:element name="linea" type="xsd:string"/><xsd:element name="marca" type="xsd:string"/><xsd:element name="proveedor" type="xsd:string"/><xsd:element name="subProv" type="xsd:string"/><xsd:element name="cantidad" type="xsd:float"/><xsd:element name="adicional" type="xsd:float"/><xsd:element name="autorizado" type="xsd:float"/><xsd:element name="sugerido" type="xsd:float"/><xsd:element name="costo" type="xsd:float"/><xsd:element name="surtida" type="xsd:float"/><xsd:element name="faltante" type="xsd:float"/><xsd:element name="cargos_U" type="xsd:float"/><xsd:element name="importe" type="xsd:float"/><xsd:element name="importeneto" type="xsd:float"/><xsd:element name="importefpcgc" type="xsd:float"/><xsd:element name="estatus" type="xsd:string"/><xsd:element name="piezas" type="xsd:integer"/><xsd:element name="partida" type="xsd:integer"/><xsd:element name="Transa" type="xsd:integer"/><xsd:element name="id_user" type="xsd:string"/><xsd:element name="id_fecha" type="xsd:string"/><xsd:element name="procesado" type="xsd:string"/><xsd:element name="pLista" type="xsd:float"/><xsd:element name="unidad" type="xsd:string"/><xsd:element name="unidad02" type="xsd:string"/><xsd:element name="codigo" type="xsd:string"/><xsd:element name="codigodos" type="xsd:integer"/><xsd:element name="impuesto" type="xsd:float"/><xsd:element name="ieps" type="xsd:float"/><xsd:element name="fpcgc" type="xsd:float"/><xsd:element name="ppromap" type="xsd:float"/><xsd:element name="pccargo" type="xsd:float"/><xsd:element name="maximo" type="xsd:float"/><xsd:element name="pscargo" type="xsd:integer"/><xsd:element name="sipromoc" type="xsd:integer"/><xsd:element name="scaplic1" type="xsd:integer"/><xsd:element name="ccaplic2" type="xsd:integer"/><xsd:element name="peso_final" type="xsd:float"/><xsd:element name="exist_act" type="xsd:float"/><xsd:element name="vtapr_act" type="xsd:float"/><xsd:element name="ped_trans" type="xsd:float"/><xsd:element name="motivos" type="xsd:string"/><xsd:element name="sug_pz" type="xsd:integer"/><xsd:element name="emp" type="xsd:integer"/><xsd:element name="emp2" type="xsd:integer"/><xsd:element name="paquete" type="xsd:integer"/><xsd:element name="Prod_Piezas" type="xsd:integer"/><xsd:element name="Prod_Capacidad" type="xsd:string"/><xsd:element name="Prod_Unidad" type="xsd:string"/><xsd:element name="Familia" type="xsd:string"/><xsd:element name="SubFamilia" type="xsd:string"/><xsd:element name="emplaye" type="xsd:string"/><xsd:element name="User_Hora" type="xsd:string"/><xsd:element name="Consolidado" type="xsd:string"/><xsd:element name="TP_Consoli" type="xsd:string"/><xsd:element name="flete" type="xsd:float"/><xsd:element name="LastUpdate" type="xsd:string"/><xsd:element name="LastUser" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="Detalles"><xsd:complexContent><xsd:restriction base="SOAP-ENC:Array"><xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Detalle[]"/></xsd:restriction></xsd:complexContent></xsd:complexType><xsd:complexType name="Estadistica"><xsd:all><xsd:element name="fecha_ini" type="xsd:string"/><xsd:element name="fecha_fin" type="xsd:string"/><xsd:element name="ped_contador" type="xsd:integer"/><xsd:element name="ped_prov_coma" type="xsd:integer"/><xsd:element name="ped_prov_otros" type="xsd:integer"/><xsd:element name="det_contador" type="xsd:integer"/><xsd:element name="det_promocion" type="xsd:integer"/><xsd:element name="det_llenado_mueble" type="xsd:string"/><xsd:element name="det_venta_segura" type="xsd:integer"/><xsd:element name="det_articulos" type="xsd:integer"/><xsd:element name="det_productos" type="xsd:integer"/><xsd:element name="error" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="Estadisticas"><xsd:complexContent><xsd:restriction base="SOAP-ENC:Array"><xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Estadistica[]"/></xsd:restriction></xsd:complexContent></xsd:complexType><xsd:complexType name="pedidosConf"><xsd:all><xsd:element name="id" type="xsd:integer"/><xsd:element name="clvSuc" type="xsd:string"/><xsd:element name="pedidos" type="xsd:string"/><xsd:element name="surtidos" type="xsd:string"/><xsd:element name="costo_tonelaje" type="xsd:float"/><xsd:element name="iniciado" type="xsd:string"/><xsd:element name="finalizado" type="xsd:string"/><xsd:element name="activo" type="xsd:integer"/></xsd:all></xsd:complexType><xsd:complexType name="pedidosConfs"><xsd:complexContent><xsd:restriction base="SOAP-ENC:Array"><xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:pedidosConf[]"/></xsd:restriction></xsd:complexContent></xsd:complexType></xsd:schema></types><message name="agregarRequest"><part name="order" type="tns:Pedido"/><part name="details" type="tns:Detalles"/></message><message name="agregarResponse"><part name="return" type="xsd:string"/></message><message name="listarEncRequest"><part name="store" type="xsd:integer"/><part name="stats" type="xsd:string"/><part name="order_num" type="xsd:integer"/></message><message name="listarEncResponse"><part name="return" type="tns:Pedidos"/></message><message name="listarDetalleRequest"><part name="order_id" type="xsd:integer"/></message><message name="listarDetalleResponse"><part name="return" type="tns:Detalles"/></message><message name="actualizarRequest"><part name="order" type="tns:Pedido"/><part name="details" type="tns:Detalles"/></message><message name="actualizarResponse"><part name="return" type="xsd:string"/></message><message name="estadoRequest"><part name="store" type="xsd:integer"/><part name="$order_num" type="xsd:integer"/></message><message name="estadoResponse"><part name="return" type="xsd:string"/></message><message name="pruebaRequest"/><message name="pruebaResponse"><part name="return" type="xsd:string"/></message><message name="estadisticaPedidosRequest"><part name="dIni" type="xsd:string"/><part name="dEnd" type="xsd:string"/></message><message name="estadisticaPedidosResponse"><part name="return" type="tns:Estadisticas"/></message><message name="InsertarPedidoRequest"><part name="oe_enc" type="tns:Pedido"/><part name="oe_det" type="tns:Detalles"/></message><message name="InsertarPedidoResponse"><part name="return" type="xsd:string"/></message><message name="UpdatePedSurtidoRequest"><part name="oe_enc" type="tns:Pedido"/><part name="oe_det" type="tns:Detalles"/></message><message name="UpdatePedSurtidoResponse"><part name="return" type="xsd:string"/></message><message name="UpdateHeadSurtidoRequest"><part name="strUpd" type="xsd:string"/><part name="clvsuc" type="xsd:integer"/><part name="compra" type="xsd:integer"/></message><message name="UpdateHeadSurtidoResponse"><part name="return" type="xsd:string"/></message><message name="UpdateDetalleSurtidoRequest"><part name="strUpd" type="xsd:string"/><part name="clvsuc" type="xsd:integer"/><part name="compra" type="xsd:integer"/><part name="codigodos" type="xsd:integer"/><part name="Producto" type="xsd:string"/></message><message name="UpdateDetalleSurtidoResponse"><part name="return" type="xsd:string"/></message><message name="getConfiguracionRequest"><part name="clvsuc" type="xsd:string"/></message><message name="getConfiguracionResponse"><part name="return" type="tns:pedidosConfs"/></message><message name="getpedidosRequest"><part name="clvsuc" type="xsd:string"/></message><message name="getpedidosResponse"><part name="return" type="xsd:string"/></message><message name="getsurtidosRequest"><part name="clvsuc" type="xsd:string"/></message><message name="getsurtidosResponse"><part name="return" type="xsd:string"/></message><message name="TestConectionRequest"/><message name="TestConectionResponse"><part name="return" type="xsd:string"/></message><portType name="PedidosPortType"><operation name="agregar"><documentation>Inserta Pedidos Especiales</documentation><input message="tns:agregarRequest"/><output message="tns:agregarResponse"/></operation><operation name="listarEnc"><documentation>Devuelve Encabezado de Pedidos Especiales</documentation><input message="tns:listarEncRequest"/><output message="tns:listarEncResponse"/></operation><operation name="listarDetalle"><documentation>Devuelve Detalle de un Pedido Especial</documentation><input message="tns:listarDetalleRequest"/><output message="tns:listarDetalleResponse"/></operation><operation name="actualizar"><documentation>Actualiza un Pedido Especial</documentation><input message="tns:actualizarRequest"/><output message="tns:actualizarResponse"/></operation><operation name="estado"><input message="tns:estadoRequest"/><output message="tns:estadoResponse"/></operation><operation name="prueba"><input message="tns:pruebaRequest"/><output message="tns:pruebaResponse"/></operation><operation name="estadisticaPedidos"><documentation>Estadistica de Pedidos Especiales</documentation><input message="tns:estadisticaPedidosRequest"/><output message="tns:estadisticaPedidosResponse"/></operation><operation name="InsertarPedido"><documentation>Función que inserta un PEDIDO Manual o Automatico</documentation><input message="tns:InsertarPedidoRequest"/><output message="tns:InsertarPedidoResponse"/></operation><operation name="UpdatePedSurtido"><documentation>Actualiza las fechas de Surtido</documentation><input message="tns:UpdatePedSurtidoRequest"/><output message="tns:UpdatePedSurtidoResponse"/></operation><operation name="UpdateHeadSurtido"><input message="tns:UpdateHeadSurtidoRequest"/><output message="tns:UpdateHeadSurtidoResponse"/></operation><operation name="UpdateDetalleSurtido"><input message="tns:UpdateDetalleSurtidoRequest"/><output message="tns:UpdateDetalleSurtidoResponse"/></operation><operation name="getConfiguracion"><documentation>Devuelve detalle de la configuracion</documentation><input message="tns:getConfiguracionRequest"/><output message="tns:getConfiguracionResponse"/></operation><operation name="getpedidos"><documentation>Devuelve detalle de la Pedidos</documentation><input message="tns:getpedidosRequest"/><output message="tns:getpedidosResponse"/></operation><operation name="getsurtidos"><documentation>Devuelve detalle de Surtidos</documentation><input message="tns:getsurtidosRequest"/><output message="tns:getsurtidosResponse"/></operation><operation name="TestConection"><documentation>Test de conexion</documentation><input message="tns:TestConectionRequest"/><output message="tns:TestConectionResponse"/></operation></portType><binding name="PedidosBinding" type="tns:PedidosPortType"><soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="agregar"><soap:operation soapAction="urn:Pedidos#agregar" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="listarEnc"><soap:operation soapAction="urn:Pedidos#listarEnc" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="listarDetalle"><soap:operation soapAction="urn:Pedidos#listarDetalle" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="actualizar"><soap:operation soapAction="urn:Pedidos#actualizar" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="estado"><soap:operation soapAction="urn:Pedidos#estado" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="prueba"><soap:operation soapAction="urn:Pedidos#prueba" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="estadisticaPedidos"><soap:operation soapAction="urn:Pedidos#estadisticaPedidos" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="InsertarPedido"><soap:operation soapAction="urn:Pedidos#InsertarPedido" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="UpdatePedSurtido"><soap:operation soapAction="urn:Pedidos#UpdatePedSurtido" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="UpdateHeadSurtido"><soap:operation soapAction="urn:Pedidos#UpdateHeadSurtido" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="UpdateDetalleSurtido"><soap:operation soapAction="urn:Pedidos#UpdateDetalleSurtido" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="getConfiguracion"><soap:operation soapAction="urn:Pedidos#getConfiguracion" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="getpedidos"><soap:operation soapAction="urn:Pedidos#getpedidos" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="getsurtidos"><soap:operation soapAction="urn:Pedidos#getsurtidos" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="TestConection"><soap:operation soapAction="urn:Pedidos#TestConection" style="rpc"/><input><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:Pedidos" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation></binding><service name="Pedidos"><port name="PedidosPort" binding="tns:PedidosBinding"><soap:address location="http://servercard:81/wsinventario/index.php/pedidos"/></port></service></definitions>

// end of file wsdl

Comments

Post Details

Added on May 28 2016
1 comment
1,355 views