What is the Axis2 version you use? How you generate the request? I mean with wsdl2java tool, service client or rpc client?
Amila. On Dec 19, 2007 11:52 AM, B Padhy <[EMAIL PROTECTED]> wrote: > > Hi All, > > We are using Axis2 for our Webservice call. when we are posting the > request, the remote system is getting the request as follows.. > > <?xml version="1.0" encoding="UTF-8" ?> > *-* <soapenv:Envelope xmlns:soapenv="* > http://schemas.xmlsoap.org/soap/envelope/*"> > *-* <soapenv:Body> > *-* <createCustomerRequest xmlns="* > http://capabilities.nat.bt.com/xsd/ManageCustomer/2007/10/04*"> > *-* <standardHeader xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/* > "> > *-* <serviceState xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*"> > * * <stateCode xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*">*OK > *</stateCode> > * * </serviceState> > *-* <serviceAddressing xmlns="* > http://wsi.nat.bt.com/2005/06/StandardHeader/*"> > * * <from xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*">* > http://sas.bt.com*</from> > *-* <to xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*"> > * * <address xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*">* > http://cmpal.bt.com*</address> > * * <contextItemList xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/ > *" xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*" xsi:nil="*true*" > /> > * * </to> > *-* <replyTo xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*"> > * * <address xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*">* > http://cmpal.bt.com*</address> > * * </replyTo> > * * <messageId xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*">*0* > </messageId> > * * <serviceName xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*">* > http://capabilities.nat.bt.com/ManageCustomer*</serviceName> > * * <action xmlns="*http://wsi.nat.bt.com/2005/06/StandardHeader/*">* > http://capabilities.nat.bt.com/wsdl/ManageCustomer#createCustomerRequest* > </action> > * * </serviceAddressing> > * * </standardHeader> > *-* <contact xmlns="* > http://capabilities.nat.bt.com/xsd/ManageCustomer/2007/10/04*"> > *-* <customerAccount xmlns="* > http://capabilities.nat.bt.com/xsd/ManageCustomer/2007/10/04/CCM/CreateCustomerRequest/Party/PartyRoles/Customer > *"> > * * <name xmlns="* > http://capabilities.nat.bt.com/xsd/ManageCustomer/2007/10/04/CCM/CreateCustomerRequest/Party/PartyRoles/Customer > *">*345689*</name> > * * <customerType xmlns="* > http://capabilities.nat.bt.com/xsd/ManageCustomer/2007/10/04/CCM/CreateCustomerRequest/Party/PartyRoles/Customer > *">*Consumer*</customerType> > * * </customerAccount> > * * <id xmlns="* > http://capabilities.nat.bt.com/xsd/ManageCustomer/2007/10/04/CCM/CreateCustomerRequest/Party/PartyRoles/Customer > *">*123456*</id> > * * </contact> > * * </createCustomerRequest> > * * </soapenv:Body> > * * </soapenv:Envelope> > > my question is, Is there anyway to give a prefix at the top element and > use the prefix, rather then providing namespace for each element.? > > Can you please suggest me regarding this... > > Biswamohan Padhy > Tata Consultancy Services > Mailto: [EMAIL PROTECTED] > Website: http://www.tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Outsourcing > ____________________________________________ > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > > -- Amila Suriarachchi, WSO2 Inc.
