Hi Anne
Thanks for replying
Please find attached the wsdl file, the wsdl does include lot of
schemas(which are not public )which I can not include, Please let me
know what you think
If you think I need to provide the schema's too then I will work on
creating an example for that
Thanks
Gaurav
Anne Thomas Manes wrote:
Can you provide the WSDL?
On Jan 11, 2008 1:27 PM, gaurav lall <[EMAIL PROTECTED]> wrote:
I tried it with nightly build , I still get the same problem . Please let me
kniow if I need to run the wsdl2java again (did not do that )
Also to give u some more context
for axis 1 (though i was not involved) there was some code added to update
the namespace mapping in the SOAP envelope SOAPEnvelope responseEnvelope
= msgContext.getResponseMessage().getSOAPEnvelope();
// Update Name Space Mappings
NSStack nss = new NSStack();
nss.add( "http://ei.com/schemas/entities/v3_1", "ent");
nss.add("http://ei.com/schemas/envelope/v3_0" , "tns");
....
responseEnvelope.setNSMappings(nss.cloneFrame());
As per my understanding this causes the axis 1 to send desired response . Is
there something which can be done with Axis 2.
Also if you note below in Axis2 response its using default namespaces we
would want the response to be same as axis1 , is there something similar in
axis 2 specificaly with regards to org.apache.axiom.soap.SOAPEnvelope ?
Thanks
Gaurav
On 1/10/08, Gaurav Lall <[EMAIL PROTECTED]> wrote:
Hi Amila
Thanks will try with nightly build and let you know. Just want to check
with you not sure how the nightly works should i be taking the build
which is out there with modified date 10-Jan-2008 11:50 (
http://people.apache.org/dist/axis2/nightly/) or do i need to wait for the
build to happen
Thanks
Gaurav
Amila Suriarachchi wrote:
can you please try with a nighly build. Now axis2 directly use the
xmlbeans serialization.
thanks,
Amila.
On Jan 9, 2008 1:16 PM, Gaurav Lall < [EMAIL PROTECTED]> wrote:
Hi all ,
We are doing migration to axis2 from axis1, we are using xmlnbeans as
data binding. mechanism.I am using axis 2 version 1.3
We are observing difference in the responses
there is no xsi:type coming out for the response
Also the namespaces are coming for each element in axis 2 response ? I
would idealy like to use the prefixes to reduce the size of the payload
Is there a configuration parameter which controls the emission of
xsi:type
Any direction or pointers would be of great help ?
-------------------AXIS 1
<off:productCategory>
<off:controlType>multiSelect</off:controlType>
<off:categoryType
xsi:type="xs:string">alaCarteResidential.alaCarteResidential
</off:categoryType >
<off:categoryName>ODUSelection.ODUSelection</off:categoryName>
<ent:description xsi:type="xs:string">ODU Selection </ent:description>
------------Axis2
<productCategory xmlns=
"http://ei.com/schemas/wsdl/orderServices/v3_0/offer">
<controlType xmlns=
"http://ei.com/schemas/wsdl/orderServices/v3_0/offer">multiSelect</controlType>
<categoryType xmlns=
"http://ei.com/schemas/wsdl/orderServices/v3_0/offer">alaCarteResidential.alaCarteResidential</categoryType>
<categoryName xmlns=
"http://ei.com/schemas/wsdl/orderServices/v3_0/offer">ODUSelection.ODUSelection<l</categoryName>
<description xmlns= "http://ei.com/schemas/entities/v3_1">A La Carte
Programming</description>
Thanks for the help
Gaurav
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:tns="http://ei.com/schemas/envelope/v3_0"
xmlns:ent="http://ei.com/schemas/entities/v3_1"
xmlns:svc="http://ei.com/schemas/wsdl/orderServices/v3_0/generateBOMC3"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:off="http://ei.com/schemas/wsdl/orderServices/v3_0/offer"
targetNamespace="http://ei.com/schemas/envelope/v3_0"
xmlns:cb="http://ei.com/schemas/wsdl/orderServices/v3_0/bom" name="OfferServicesC3">
<wsdl:types>
<xs:schema targetNamespace="http://ei.com/schemas/envelope/v3_0"
elementFormDefault="qualified">
<!--
Include Envelope to get the basic EI Envelope structure. SOAP Structure will look very similar (use the same header, etc)
-->
<xs:include schemaLocation="../../../envelope/v3.0/Envelope.xsd"/>
<!--
Import Service XSD to get the Request & Response elements.
-->
<xs:import namespace="http://ei.com/schemas/wsdl/orderServices/v3_0/offer"
schemaLocation="./OfferConfigurationDetails.xsd"/>
<xs:import namespace="http://ei.com/schemas/wsdl/orderServices/v3_0/bom"
schemaLocation="ConfiguredBOM.xsd"/>
<xs:element name="GenerateBOMRequest" type="off:ValidateConfigurationC3RequestType"/>
<xs:element name="GenerateBOMResponse" type="cb:ConfiguredBOMResponseEntity"/>
<xs:element name="GetEligibleOffersRequest" type="off:GetEligibleOffersRequestType"/>
<xs:element name="GetEligibleOffersResponse" type="off:OfferConfigurationDetailsType"/>
<xs:element name="ValidateConfigurationRequest"
type="off:ValidateConfigurationC3RequestType"/>
<xs:element name="ValidateConfigurationResponse"
type="off:OfferConfigurationDetailsType"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="GenerateBOMC3SoapRequestBody">
<!--
Define a Request Body for this Service.
This references the svc:request element already defined in the imported schema
-->
<part name="requestParameters" element="tns:GenerateBOMRequest"/>
<!--
Define a Header Part for this SOAP XML.
This references the ei element defined earlier
-->
<part name="ei" element="tns:ei"/>
</wsdl:message>
<wsdl:message name="GenerateBOMC3SoapResponseBody">
<!--
Define a Response Body for this Service.
This references the svc:response element already defined in the imported schema
-->
<part name="responseParameters" element="tns:GenerateBOMResponse"/>
<!--
Define a Header Part for this SOAP XML.
This references the ei element defined earlier
-->
<part name="ei" element="tns:ei"/>
</wsdl:message>
<wsdl:message name="GetEligibleOffersC3SoapRequestBody">
<!--
Define a Request Body for this Service.
This references the svc:request element already defined in the imported schema
-->
<part name="requestParameters" element="tns:GetEligibleOffersRequest"/>
<!--
Define a Header Part for this SOAP XML.
This references the ei element defined earlier
-->
<part name="ei" element="tns:ei"/>
</wsdl:message>
<wsdl:message name="GetEligibleOffersC3SoapResponseBody">
<!--
Define a Response Body for this Service.
This references the svc:response element already defined in the imported schema
-->
<part name="responseParameters" element="tns:GetEligibleOffersResponse"/>
<!--
Define a Header Part for this SOAP XML.
This references the ei element defined earlier
-->
<part name="ei" element="tns:ei"/>
</wsdl:message>
<wsdl:message name="ValidateConfigurationC3SoapRequestBody">
<!--
Define a Request Body for this Service.
This references the svc:request element already defined in the imported schema
-->
<part name="requestParameters" element="tns:ValidateConfigurationRequest"/>
<!--
Define a Header Part for this SOAP XML.
This references the ei element defined earlier
-->
<part name="ei" element="tns:ei"/>
</wsdl:message>
<wsdl:message name="ValidateConfigurationC3SoapResponseBody">
<!--
Define a Response Body for this Service.
This references the svc:response element already defined in the imported schema
-->
<part name="responseParameters" element="tns:ValidateConfigurationResponse"/>
<!--
Define a Header Part for this SOAP XML.
This references the ei element defined earlier
-->
<part name="ei" element="tns:ei"/>
</wsdl:message>
<wsdl:portType name="OfferServicesC3PortType">
<!--
Define the Port type to be used for this service.
This identifies the operation, and defines the input & output
messages for that operation
-->
<wsdl:operation name="GenerateBOMC3">
<wsdl:input message="tns:GenerateBOMC3SoapRequestBody"/>
<wsdl:output message="tns:GenerateBOMC3SoapResponseBody"/>
</wsdl:operation>
<!--
Define the Port type to be used for this service.
This identifies the operation, and defines the input & output
messages for that operation
-->
<wsdl:operation name="GetEligibleOffersC3">
<wsdl:input message="tns:GetEligibleOffersC3SoapRequestBody"/>
<wsdl:output message="tns:GetEligibleOffersC3SoapResponseBody"/>
</wsdl:operation>
<!--
Define the Port type to be used for this service.
This identifies the operation, and defines the input & output
messages for that operation
-->
<wsdl:operation name="ValidateConfigurationC3">
<wsdl:input message="tns:ValidateConfigurationC3SoapRequestBody"/>
<wsdl:output message="tns:ValidateConfigurationC3SoapResponseBody"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="OfferServicesC3Binding" type="tns:OfferServicesC3PortType">
<!--
Define the Binding used by the operation defined in the portType.
-->
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GenerateBOMC3">
<!--
Define the SOAP operation with the following params
Soap Action : http://ei.com/schemas/envelope/v3_0/GenerateBOMC3PortType/GenerateBOMC3
Style : document
-->
<soap:operation
soapAction="http://ei.com/schemas/envelope/v3_0/GenerateBOMC3PortType/GenerateBOMC3"
style="document"/>
<!--
We define the input to contain the header and the input message defined earlier
-->
<wsdl:input>
<soap:body parts="requestParameters" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="tns:GenerateBOMC3SoapRequestBody" part="ei" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<!--
We define the output to contain the header and the output message defined earlier
-->
<wsdl:output>
<soap:body parts="responseParameters" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="tns:GenerateBOMC3SoapResponseBody" part="ei" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output>
</wsdl:operation>
<!--
Define the Binding used by the operation defined in the portType.
-->
<wsdl:operation name="GetEligibleOffersC3">
<!--
Define the SOAP operation with the following params
Soap Action : http://ei.com/schemas/envelope/v3_0/GetEligibleOffersC3PortType/GetEligibleOffersC3
Style : document
-->
<soap:operation
soapAction="http://ei.com/schemas/envelope/v3_0/GetEligibleOffersC3PortType/GetEligibleOffersC3"
style="document"/>
<!--
We define the input to contain the header and the input message defined earlier
-->
<wsdl:input>
<soap:body parts="requestParameters" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="tns:GetEligibleOffersC3SoapRequestBody" part="ei"
use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<!--
We define the output to contain the header and the output message defined earlier
-->
<wsdl:output>
<soap:body parts="responseParameters" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="tns:GetEligibleOffersC3SoapResponseBody" part="ei"
use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output>
</wsdl:operation>
<!--
Define the Binding used by the operation defined in the portType.
-->
<wsdl:operation name="ValidateConfigurationC3">
<!--
Define the SOAP operation with the following params
Soap Action : http://ei.com/schemas/envelope/v3_0/ValidateConfigurationC3PortType/ValidateConfigurationC3
Style : document
-->
<soap:operation
soapAction="http://ei.com/schemas/envelope/v3_0/ValidateConfigurationC3PortType/ValidateConfigurationC3"
style="document"/>
<!--
We define the input to contain the header and the input message defined earlier
-->
<wsdl:input>
<soap:body parts="requestParameters" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="tns:ValidateConfigurationC3SoapRequestBody" part="ei"
use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<!--
We define the output to contain the header and the output message defined earlier
-->
<wsdl:output>
<soap:body parts="responseParameters" use="literal"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="tns:ValidateConfigurationC3SoapResponseBody" part="ei"
use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="OfferServicesC3">
<!--
Finally, we define the Service and point it to a physical end point
-->
<wsdl:port name="GenerateBOMC3ServicePort" binding="tns:OfferServicesC3Binding">
<soap:address
location="http://127.0.0.1:8080/dtv72/services/OfferServicesC3"
/>
</wsdl:port>
<!--
Finally, we define the Service and point it to a physical end point
-->
<wsdl:port name="GetEligibleOffersC3ServicePort" binding="tns:OfferServicesC3Binding">
<soap:address
location="http://127.0.0.1:8080/dtv72/services/OfferServicesC3"
/>
</wsdl:port>
<!--
Finally, we define the Service and point it to a physical end point
-->
<wsdl:port name="ValidateConfigurationC3ServicePort" binding="tns:OfferServicesC3Binding">
<soap:address
location="http://127.0.0.1:8080/dtv72/services/OfferServicesC3"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]