[Users] WSDL <definition>

silves4 silves4 at gmail.com
Wed Mar 16 11:06:34 CET 2011


Ok

I have implemented the method calculateArea. Petals Fast Export and then have the provider's deployed in PetalsESB servicio181. Works fine from PetalsWebConsole.

My service provider WSDL is the next (it creates in PetalsStudio):

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://tempuri.org/AreaService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AreaService" targetNamespace="http://tempuri.org/AreaService/">
  <wsdl:types>
    <xsd:schema targetNamespace="http://tempuri.org/AreaService/">
      <xsd:element name="area" type="xsd:float" />
      <xsd:element name="parameters" type="tns:dimensions" />
      <xsd:complexType name="dimensions">
        <xsd:sequence>
          <xsd:element name="width" type="xsd:float" />
          <xsd:element name="height" type="xsd:float" />
        </xsd:sequence>
      </xsd:complexType>
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="CalculateRectAreaResponse">
    <wsdl:part element="tns:area" name="area" />
  </wsdl:message>
  <wsdl:message name="CalculateRectAreaRequest">
    <wsdl:part element="tns:parameters" name="parameters" />
  </wsdl:message>
  <wsdl:portType name="AreaService">
    <wsdl:operation name="CalculateRectArea">
      <wsdl:input message="tns:CalculateRectAreaRequest" />
      <wsdl:output message="tns:CalculateRectAreaResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="AreaServiceSOAP" type="tns:AreaService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="CalculateRectArea">
      <soap:operation soapAction="http://tempuri.org/AreaService/NewOperation" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="AreaService">
    <wsdl:port binding="tns:AreaServiceSOAP" name="AreaServiceSOAP">
      <soap:address location="http://tempuri.org" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


 The problem comes when I think the consumer BC_SOAP for the JSR181 and make Petals Fast Export and deploying in the PetalsESB. By accessing http://localhost:8084 (SOAP component direction), there are the services that I have made as a consumer. When I access the service element adds namespace <description> strangers. 

<?xml version="1.0" encoding="UTF-8" ?> 
- <w:definitions xmlns:w="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns10="http://petals.ow2.org/wsdlExtensions" xmlns:ns12="tns" xmlns:ns14="ns16" xmlns:ns15="soap" xmlns:ns16="wsdl" xmlns:ns16_="ns9" xmlns:ns17="ns10" xmlns:ns18="ns17" xmlns:ns19="xml" xmlns:ns20="ns8" xmlns:ns21="soap12" xmlns:ns21_="ns21" xmlns:ns22="ns7" xmlns:ns23="http" xmlns:ns24="ns18" xmlns:ns25="ns12" xmlns:ns26="ns28" xmlns:ns27="mime" xmlns:ns27_="ns30" xmlns:ns28="ns14" xmlns:ns29="w" xmlns:ns30="ns15" xmlns:ns30_="ns16_" xmlns:ns32="ns19" xmlns:ns33="ns25" xmlns:ns35="ns22" xmlns:ns37="ns20" xmlns:ns38="ns29" xmlns:ns40="ns23" xmlns:ns41="xsd" xmlns:ns42="ns24" xmlns:ns43="ns27" xmlns:ns7="http://www.w3.org/ns/wsdl" xmlns:ns8="http://www.w3.org/ns/wsdl/http" xmlns:ns9="http://www.w3.org/ns/wsdl/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://tempuri.org/AreaService/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AreaService" targetNamespace="http://tempuri.org/AreaService/">
- <w:types>
- <xs:schema targetNamespace="http://tempuri.org/AreaService/">
  <xs:element name="area" type="xs:float" /> 
  <xs:element name="parameters" type="tns:dimensions" /> 
- <xs:complexType name="dimensions">
- <xs:sequence>
  <xs:element name="width" type="xs:float" /> 
  <xs:element name="height" type="xs:float" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:schema>
  </w:types>
- <w:message name="CalculateRectAreaResponse">
  <w:part element="tns:area" name="area" /> 
  </w:message>
- <w:message name="CalculateRectAreaRequest">
  <w:part element="tns:parameters" name="parameters" /> 
  </w:message>
- <w:portType name="AreaService">
- <w:operation name="CalculateRectArea">
  <w:input message="tns:CalculateRectAreaRequest" /> 
  <w:output message="tns:CalculateRectAreaResponse" /> 
  </w:operation>
  </w:portType>
- <w:binding name="AreaServiceSOAP" type="tns:AreaService">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> 
- <w:operation name="CalculateRectArea">
  <soap:operation soapAction="http://tempuri.org/AreaService/NewOperation" /> 
- <w:input>
  <soap:body use="literal" /> 
  </w:input>
- <w:output>
  <soap:body use="literal" /> 
  </w:output>
  </w:operation>
  </w:binding>
- <w:service name="AreaService">
- <w:port binding="tns:AreaServiceSOAP" name="AreaServiceSOAP">
  <soap:address location="http://10.0.2.15:8084/petals/services/SoapServicioArea" /> 
  </w:port>
  </w:service>
  </w:definitions>

This causes not to publish PetalsMaster to give me an error when i try ublish the service.

Excume me,I didn´t get resolve the problem.

Thanks




-------------------- m2f --------------------

Subscribe/Unsubscribe emails notifications :
http://forum.petalslink.com/m2f_usercp.php

Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)

Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=31713#31713

-------------------- m2f --------------------






More information about the Users mailing list