SimpleDeserializer encountered a child element ... Please HELP!!!!

Good Morning Everyone,
I want to thank you for reading my problem and see if you can help me. The deadline for this project is monday and I am struggling to make it work. I am using axis 1.4 .
I created the web method
public void GetFilters( javax.xml.rpc.holders.BooleanHolder GetFiltersResult, CCRFiltersHolder CCRFilters,
javax.xml.rpc.holders.StringHolder Message, javax.xml.rpc.holders.StringHolder XMLData ){
First, I needed to create the CCRFilters as a CCRFiltersHolder because is an IN/OUT parameter.
public class CCRFiltersHolder implements javax.xml.rpc.holders.Holder{
public CCRFiltersList value;
public CCRFiltersHolder() {
public CCRFiltersHolder(CCRFiltersList value) {
this.value = value;
public class CCRFiltersList implements Serializable{
private CCRFilters[] filterList;
public CCRFilters[] getFilterList() {
return filterList;
public void setFilterList(CCRFilters[] filterList) {
this.filterList = filterList;
public CCRFilters getFilterList(int index) {
return filterList[index];
public void setFilterList(int index, CCRFilters filterList) {
this.filterList[index] = filterList;
public class CCRFilters implements Serializable {
private String FieldName;
private String RelationShip;
public String getFieldName() {
return FieldName;
public void setFieldName(String pFieldName) {
FieldName = pFieldName;
public String getRelationShip() {
return RelationShip;
public void setRelationShip(String pRelationShip) {
RelationShip = pRelationShip;
My wsdd file looks like:
<service name="CCR" provider="java:RPC" style="wrapped" use="literal" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<parameter name="className" value="com.harris.mercury.gemsccrintegration.CCR"/>
<parameter name="allowedMethods" value="*"/>
<parameter name="typeMappingVersion" value="1.2"/>
<namespace>http://tempuri.org/</namespace>
<parameter name="schemaUnqualified" value="http://www.gemsgov.com/CCR/"/>
<parameter name="wsdlServicePort" value="CCRPort"/>
<operation name="GetFilters" soapAction="http://www.gemsgov.com/CCR/GetFilters" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<parameter name="GetFiltersResult" type="xs:boolean" mode="OUT"/>
<parameter name="CCRFilters" mode="INOUT" type="rtns:CCRFiltersHolder" xmlns:rtns="http:////www.gemsgov.com/CCR/GetFilters"/>
<parameter name="Message" type="xs:string" mode="INOUT"/>
<parameter name="XMLData" type="xs:string" mode="INOUT"/>
</operation>
<typeMapping
xmlns:ns="http://www.gemsgov.com/CCR/GetFilters" qname="ns:CCRFiltersHolder"
type="java:com.harris.mercury.cashiering.gemsintegration.holder.CCRFiltersHolder"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
<typeMapping
xmlns:ns1="http://www.gemsgov.com/CCR/GetFilters" qname="ns1:CCRFiltersList"
type="java:com.harris.mercury.cashiering.gemsintegration.CCRFiltersList"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
<typeMapping
xmlns:ns2="http://www.gemsgov.com/CCR/GetFilters"
qname="ns2:CCRFilters"
type="java:com.harris.mercury.cashiering.gemsintegration.CCRFilters"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
<typeMapping xmlns:soapenc="http://www.gemsgov.com/CCR/GetFilters"
qname="soapenc:CCRFiltersArray"
type="java:com.harris.mercury.cashiering.gemsintegration.CCRFilters[]"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle=""
/>
</service>
Even in my test program, I added the following code :
Call call = (Call) service.createCall();
QName qn = new QName( "http://www.gemsgov.com/CCR/GetFilters", "CCRFiltersHolder" );
call.registerTypeMapping("com.harris.mercury.cashiering.gemsintegration.holder.CCRFiltersHolder".getClass(), qn,
BeanSerializerFactory.class, BeanDeserializerFactory.class);
QName qn4 = new QName( "http://www.gemsgov.com/CCR/GetFilters", "CCRFiltersList" );
call.registerTypeMapping(CCRFiltersList.class, qn4,BeanSerializerFactory.class, BeanDeserializerFactory.class);
QName qn1 = new QName( "http://www.gemsgov.com/CCR/GetFilters", "CCRFilters" );
call.registerTypeMapping(CCRFilters.class, qn1, BeanSerializerFactory.class, BeanDeserializerFactory.class);
QName qn3 = new QName( "http://schemas.xmlsoap.org/soap/encoding", "CCRFiltersArray" );
call.registerTypeMapping(CCRFilters[].class, qn3, new ArraySerializerFactory(), new ArrayDeserializerFactory());
But when running, everytime I get the following message : SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Please any help whould be appreciate it.
Thanks a lot,
Martha
Edited by: Melliza on Sep 25, 2009 10:00 AM

Hi,
Regarding to the query which I have posted may have following possibility.
This error may be due to the arguments which it gives as the output, as some of those arguments are the object of some other class.
As the web service which I am trying to access is developed in .Net and requires three parameters, out of which one parameter named as "name" is input parameter while the other two are the output parameters, which web service provide as output. And may be the output which it provides may also be developed in .Net only and thats why while passing the input variable, it is not able to convert its output variable into the String.
Please provide your valuable comments and solution to that.
Thanks

Similar Messages

  • URGENT! SimpleDeserializer encountered a child element, which is NOT expect

    Hi all,
    I am very new to web services.
    I am calling a web service which is developed in .Net
    Please help me out to solve the error as
    "*SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize*"
    My code is as below
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    public class CallingWebServiceClient
         public static void main(String [] args)
              try
                   String endpointURL =
                        "http://10.40.4.76/InSiteWebServices/WSNamedMaint.asmx";
                   String name = "ABC";
                   //Object serviceData = new Object();
                   //Object resultStatus = new Object();
                   Service service = new Service();
                   Call call = (Call) service.createCall();
                   call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
                   call.setOperationName("RequestAllValues");
                   call.addParameter( name, XMLType.XSD_STRING, ParameterMode.IN);
                   //call.addParameter( "serviceData", XMLType.XSD_ANY, ParameterMode.OUT);
                   //call.addParameter( "resultStatus", XMLType.XSD_ANY, ParameterMode.OUT);
                   call.setProperty(call.SOAPACTION_USE_PROPERTY, new Boolean(true));
                   call.setProperty(call.SOAPACTION_URI_PROPERTY, "http://www.xyz.com/WebService/WSNamedMaint/RequestAllValues");
                   call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING );
                   String ret = (String) call.invoke( new Object[] { name } );
                   System.out.println("Value is : " + ret);
              catch (Exception e)
                   System.err.println(e.toString());
    }Please let me know the solution as soon as possible.
    Thanks

    Hi,
    Regarding to the query which I have posted may have following possibility.
    This error may be due to the arguments which it gives as the output, as some of those arguments are the object of some other class.
    As the web service which I am trying to access is developed in .Net and requires three parameters, out of which one parameter named as "name" is input parameter while the other two are the output parameters, which web service provide as output. And may be the output which it provides may also be developed in .Net only and thats why while passing the input variable, it is not able to convert its output variable into the String.
    Please provide your valuable comments and solution to that.
    Thanks

  • Org.xml.sax.SAXException:SimpleDeserializer encountered a child element..

    Hi All,
    I created a following program using "GetReportDefintion" method provided by BI Publisher Web Services
    package bip_webservices;
    import com.oracle.xmlns.oxp.service.PublicReportService.ItemData;
    import com.oracle.xmlns.oxp.service.PublicReportService.ReportRequest;
    import com.oracle.xmlns.oxp.service.PublicReportService.ReportResponse;
    import com.oracle.xmlns.oxp.service.PublicReportService.ParamNameValue;
    import com.oracle.xmlns.oxp.service.PublicReportService.ReportDefinition;
    import com.oracle.xmlns.oxp.service.PublicReportService.ScheduleRequest;
    import com.oracle.xmlns.oxp.service.PublicReportService.DeliveryRequest;
    import com.oracle.xmlns.oxp.service.PublicReportService.EMailDeliveryOption;
    import  java.io.FileOutputStream;
    import  java.io.OutputStream;
    import java.net.MalformedURLException;
    import java.rmi.RemoteException;
    import  java.util.Calendar;
    import javax.xml.rpc.ServiceException;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.encoding.ser.BeanDeserializerFactory;
    import org.apache.axis.encoding.ser.BeanSerializerFactory;
    import  javax.xml.namespace.QName;
    import  javax.xml.rpc.ParameterMode;
    import  java.net.URL;
    public class BIP_GetReportDefinition {
        public static void main(String[] args) throws ServiceException, MalformedURLException, RemoteException{
         try{
            final String bipEndpoint = "http://localhost:9704/xmlpserver/services/PublicReportService?wsdl";
            final String bipNamespace = "http://xmlns.oracle.com/oxp/service/PublicReportService";
            final String xdofile = "/MyReports/SummaryCustomerReport/SummaryCustomerReport.xdo";
            Service service = new Service();
            Call call = (Call) service.createCall();
            call.setTargetEndpointAddress(new URL(bipEndpoint));
           System.out.println("BEGIN TESTING getReportDefinition");
            // register the ReportDefinition class
            QName reportDef = new QName(bipNamespace, "ReportDefinition");
            call.registerTypeMapping(ReportDefinition.class, reportDef,
                            BeanSerializerFactory.class, BeanDeserializerFactory.class);
            // register the ParamNameValue class
            QName nmvals = new QName(bipNamespace, "ParamNameValue");
            call.registerTypeMapping(ParamNameValue.class, nmvals, BeanSerializerFactory.class, BeanDeserializerFactory.class);
            call.setOperationName(new QName(bipNamespace, "getReportDefinition"));
            call.addParameter("reportAbsolutePath", XMLType.XSD_STRING, ParameterMode.IN);
            call.addParameter("userID", XMLType.XSD_STRING, ParameterMode.IN);
            call.addParameter("password", XMLType.XSD_STRING, ParameterMode.IN);
            call.setReturnClass(ReportDefinition.class);
            // issue the request
            ReportDefinition reportDefn = (ReportDefinition) call.invoke(
                new Object[] { xdofile, "Administrator", "Administrator"});
            System.out.println("Report Definition Returns with \n Default Output Format = " + reportDefn.getDefaultOutputFormat());
            ParamNameValue params [] = reportDefn.getReportParameterNameValues();
            if (params != null) {
                for (int i = 0; i < params.length; i++) {
                    System.out.print("Parameter " + params.getName() + ":");
    if (params[i].getValues() != null) {
    for (int j = 0; j < params[i].getValues().length; j++)
    System.out.print(" " + params[i].getValues()[j]);
    } else
    System.out.print(" null");
    System.out.println(" - multiple values? " + params[i].isMultiValuesAllowed());
    System.out.println("END TESTING getReportDefinition");
    }catch(Exception e){
    e.printStackTrace();
    I am getting following exception message. Anyone has any ideas what could be the mistake ?
    SEVERE: Exception:
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
            at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
            at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
            at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
            at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
            at org.apache.axis.client.Call.invoke(Call.java:2467)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at bip_webservices.BIP_GetReportDefinition.main(BIP_GetReportDefinition.java:67)
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
    faultActor:
    faultNode:
    faultDetail:
            {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
            at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
            at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
            at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
            at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
            at org.apache.axis.client.Call.invoke(Call.java:2467)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at bip_webservices.BIP_GetReportDefinition.main(BIP_GetReportDefinition.java:67)
            {http://xml.apache.org/axis/}hostname:mildh0228
    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
            at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
            at org.apache.axis.client.Call.invoke(Call.java:2470)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at bip_webservices.BIP_GetReportDefinition.main(BIP_GetReportDefinition.java:67)
    Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
            at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
            at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
            at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
            at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
            at org.apache.axis.client.Call.invoke(Call.java:2467)
            ... 3 moreThanks for giving this problem a look.
    -Sookie

    Hi Sookie,
    I found the problem is with couple of child parameters are not registered the deserializer. There're couple of additional classes needs to be registerd.
    // register the TemplateLabelValue class
    QName templateval = new QName(bipNamespace, "TemplateFormatLabelValue");
    Class cls = TemplateFormatLabelValue.class;
    call.registerTypeMapping(cls, templateval, BeanSerializerFactory.class, BeanDeserializerFactory.class);
    // register the TemplateLabelValues class
    QName templatevals = new QName(bipNamespace, "TemplateFormatsLabelValues");
    cls = TemplateFormatsLabelValues.class;
    call.registerTypeMapping(cls, templatevals, BeanSerializerFactory.class, BeanDeserializerFactory.class);
    Could you please give it a try?
    Thanks.
    Yang

  • SimpleDeserializer encountered a child element..webservice error

    when I invoke a webservice using Oracle stored procedure,I'm getting the fault response below :
    HTTP response status code: 500
    HTTP response reason phrase: Internal Server Error
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
    which is NOT expected, in something it was trying to deserialize.</faultstring><detail><ns1:hostname
    xmlns:ns1="http://xml.apache.org/axis/">suznt266.qintra.com</ns1:hostname></detail></soapenv:Fault>
    </soapenv:Body></soapenv:Envelope>
    Any ideas about the cause and resolution?..
    Thanks in advance!!!!
    Regards,
    Bhagat

    If you posted the whole WSDL file, it would be more helpful.
    I suppose your WSDL uses rpc/encoding. Both operations in your WSDL expects only one parameter of xsd:float. Well your client code passed an array float(new Object[] {new Float(3)}).
    This should have caused the exception.

  • SimpleDeserializer encountered a child element, which is NOT expected,

    Hi All,
    I created a webservice using JAVA.
    Got WSDL for a SAP Funtional Module(BAPI_MATERIAL_SAVEDATA) and created Java Classes using (WSDL2Java -t XXX.wsdl ).
    Wrote a Java Client Prog to invoke the services.
    While Invoking the service from a Java Client program by Passing all the parameters,
    and the parameters getting updated in SAP
    BUT Getting the following Exception, not getting the response porperly:
    AxisFault
    faultCode: Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child e
    lement, which is NOT expected, in something it was trying to deserialize.
    faultActor:
    faultNode:
    faultDetail:
            stackTrace:org.xml.sax.SAXException: Simple
    Deserializer encountered a child element, which is NOT expected, in something it
    was trying to deserialize.
            at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDe
    serializer.java:145)
            at org.apache.axis.encoding.DeserializationContext.startElement(Deserial
    izationContext.java:1035)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
    va:165)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
    t.java:1141)
            at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
            at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
            at org.apache.axis.client.Call.invoke(Call.java:2467)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at SAPClient.materialSaveData(SAPClient.java:700)
            at SAPClient.main(SAPClient.java:427)
            hostname:hp-2535
    Cheers, all help would be greatly appreciated
    Vijay

    Hi!
    Resolved it, but don't see "resolved by myself" option. I was calling the wrong service.

  • Need help badly. project file wont open. saying damaged file or may contain outdated elements. please help

    project file wont open. damaged file or contains outdated elements message. i believe its an XML error but i dont know how to fix it. please help

    As a happy user of the Matrox RT.X2 for many years, and later an equally happy user of a Matrox MXO2, I can say from experience that it is highly unlikely that this problem has anything to do with the Matrox hardware!
    Can you open a new blank project, and save it?
    If you cannot import your faulty project into a new project, can you import the sequence from your faulty project?
    Have you tried clearing the Media Cache, clearing your preferences, etc. - all among the techniques used to resurrect a Premiere Pro project that has gone bad???

  • The project could not be loaded, it may be damaged or contain outdated elements - PLEASE HELP

    Hi Dear Adobe Forum,
    I need help, please
    i cant open my project
    I72600K
    Gygabite Z77Ud5
    Matrox Rtx2
    16Gb ram
    Adobe premiere cs5.0.3
    Nvidia geeforce gtx460
    u can download my file from here[code]http://speedy.sh/Ahkxh/Anahit1.prproj[/code]http://speedy.sh/Ahkxh/Anahit1.prproj

    As a happy user of the Matrox RT.X2 for many years, and later an equally happy user of a Matrox MXO2, I can say from experience that it is highly unlikely that this problem has anything to do with the Matrox hardware!
    Can you open a new blank project, and save it?
    If you cannot import your faulty project into a new project, can you import the sequence from your faulty project?
    Have you tried clearing the Media Cache, clearing your preferences, etc. - all among the techniques used to resurrect a Premiere Pro project that has gone bad???

  • Open dialog box window with checkboxes for each child record - Please Help

    Hello Everybody
    I have a 10g form with master record and 20 child records. In the child record form, currently there is a “Notes” Editor, which pops up when user click the “Edit” button. In the “Notes” editor, user enters remarks if anything is missing. For example, typical remarks will be: Statement is missing, LOC paper is missing etc.
    Now, I would like to replace “Notes” editor with a dialog box. In the dialog box , I would like to add checkboxes with values “Statement is missing” and “LOC paper is missing” etc. along with “Notes” field. The user can select checkboxes. The value of the checkboxes should go in the “Notes” field with the ability to edit it. This way, user doesn’t need to type the most common notes every time.
    I have created a “NewNotes” dialog box with checkboxes and multiline text Item. It is pops up when I click on the button. I have also created to WHEN_CHECKBOC_CHANGED trigger for each checkboxes so that the its value will go in a multiline text item.
    But, I am not sure how I can link “NewNotes” dialog box to the each record in child record block. I would really appreciate it if anybody could give me some idea.
    Thanks,

    if i understand correctly you have a note item (based on table) on every child record? when you open the dialog box: how do you put data from notes to dialog box? in the same way as you can write it back ...

  • Encountering Exception!!please help

    what should i do if i get this exception
    Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jdesktop/
    jdic/desktop/Message (Unsupported major.minor version 48.0)

    Asking in the JDIC forum would probably help, I'm assuming this has nothing to do with JavaMail.
    http://forums.java.net/jive/forum.jspa?forumID=72

  • (Encrypting XML elements - please help!

    Hi all
    I want to be able to take an XML file as input and encrypt just certain elements within it (as opposed to the whole document) using a public key. Later, I will need to reverse the process and decrypt with a private key. I would be extremely grateful for any advice/pointers/code snippets that could get me started.
    I have found various tutorials on the web and have begun following them, only to later find that the technology has been deprecated. I decided to post here therefore in the hope that someone could point me in the direction of the latest up to to date technology and best practice!
    I am using Weblogic 9.2 to host my application.
    Many thanks for reading my post.
    Kind regards
    Jon

    Well no, there's no limit on the size of an XML file by the specification, but in practice you will find that you almost always have to load the XML file into memory. This means that the larger the file, (a) the longer it takes to load and (b) the more likely it is you will run out of memory. I have seen it suggested that 10 megabytes is a practical upper limit for the size of an XML file to be processed in this way, but of course that would be just a rough guideline. If you have files much larger than that, you will have to use a SAX parser (which processes the XML sequentially) if you want to be able to handle it.
    But if you are talking about B2B, then most of your XML files will be transaction packets, right? Probably you wouldn't have a purchase order that large, for example. And you will be processing them asynchronously, right? (Nobody sitting at the browser waiting for a response.) That simplifies things because you don't have response time as an overriding requirement.

  • Please help with web services (JSR 172)

    Hello!
    I'm in need of some help. I've only worked with web services some few weeks. I have two web services that I want to access from J2ME.
    Both works nice in regular Java (J2SE). I use axis so with the help of WSDL2Java I got a working client.
    One of them has four operations
        public boolean tryToLoginUser( String username, String password ) {}   
        public boolean tryToLogOffUser( String username, String password ){}
        public boolean createUserAccount( String username, String password ){ }
        public boolean removeUserAccount( String username, String password ){ } The problem is when I want to use Sun's Wireless Toolkit 2.2 and create stubs that way with the Stub Generator. It complains with this
    warning: Operation tryToLoginUser is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation tryToLogOffUser is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation createUserAccount is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation removeUserAccount is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.What I can tell is I need to put this in my axis deployment descriptor
    <service name="UserWebService" provider="java:RPC" style="document" use="literal">instead of this:
    <service name="UserWebService" provider="java:RPC">This wont work. It don't work with HTTP GET I get this error
      <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
    - <detail>
      <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">slukare</ns1:hostname>
      </detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>I doesn�t work with WSDL2Java and when I run Sun's Wireless Toolkit 2.2 to generate stub it complains with
    warning: ignoring operation "tryToLoginUser": more than one part in input message
    warning: ignoring operation "tryToLogOffUser": more than one part in input message
    warning: ignoring operation "createUserAccount": more than one part in input message
    warning: ignoring operation "removeUserAccount": more than one part in input message
    warning: Port "UserWebService" does not contain any usable operationsDoes this mean I can only use one parameter for input in an operation when I use style="document" use="literal" ??
    I understood it that way, so I created a new web service that takes username and password in one String.
    The new web service has four operations
        public boolean tryToLoginUser( String usernameAndPassword ) {}   
        public boolean tryToLogOffUser( String usernameAndPassword ){}
        public boolean createUserAccount( String usernameAndPassword ){ }
        public boolean removeUserAccount( String usernameAndPassword ){ }The problem is that I get this error when running HTTP GET.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
    - <detail>
      <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">slukare</ns1:hostname>
      </detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>If I get a WSDL2Java client it works (!) if I manually changes the parameter names. I have four operations which all takes
    String usernameAndPassword
    in one String since I can only use one parameter with style="document" use="literal"
    The WSDL2Java automatically set the parameter names to
    usernameAndPassword
    usernameAndPassword1
    usernameAndPassword2
    usernameAndPassword3
    for the different operations. If I manually changes them to all have the name
    usernameAndPassword
    it works. Why doesn�t it work without manual changes? I haven�t tested the code from Sun�s Wireless Toolkit 2.2 Stub Generator yet, but that at least doesn�t give any errors .
    My other web service doesn�t work either if I set style="document" use="literal".
    This web service returns my own classes I have written. It works as I said previously in J2SE with WSDL2Java, but not with style="document" use="literal�. When I set this my byte[] which is returned is null when using the client from WSDL2Java, this wasn�t the case without style="document" use="literal�.
    I also get an error in Sun�s Wireless Toolkit 2.2 that byte[] is not recoigniced. This wasn�t the case with axis WSDL2Java.
    If I put this inside the axis deployment descriptor
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
           <service xmlns:j2melab2="urn:businessobject.j2melab2"
                     name="RecipeWebService" provider="java:RPC" style="document" use="literal">
              <parameter name="scope" value="session"/>
              <parameter name="className" value="j2melab2.webservices.RecipeWebService"/>
              <parameter name="allowedMethods" value="*"/>
                    <typeMapping qname="j2melab2:ArrayOfString"
                                 type="java:java.lang.String[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <beanMapping qname="j2melab2:Recipe" languageSpecificType="java:j2melab2.businessobject.Recipe"/>         
                    <beanMapping qname="j2melab2:Ingredient" languageSpecificType="java:j2melab2.businessobject.Ingredient"/>         
                    <typeMapping qname="j2melab2:ArrayofIngredient"
                                 type="java:j2melab2.businessobject.Ingredient[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <typeMapping qname="j2melab2:ArrayOfByte"
                                 type="byte[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>                            
         </service>
    </deployment>instead of this
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
           <service xmlns:j2melab2="urn:businessobject.j2melab2"
                     name="RecipeWebService" provider="java:RPC">
              <parameter name="scope" value="session"/>
              <parameter name="className" value="j2melab2.webservices.RecipeWebService"/>
              <parameter name="allowedMethods" value="*"/>
                    <typeMapping qname="j2melab2:ArrayOfString"
                                 type="java:java.lang.String[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <beanMapping qname="j2melab2:Recipe" languageSpecificType="java:j2melab2.businessobject.Recipe"/>         
                    <beanMapping qname="j2melab2:Ingredient" languageSpecificType="java:j2melab2.businessobject.Ingredient"/>         
                    <typeMapping qname="j2melab2:ArrayofIngredient"
                                 type="java:j2melab2.businessobject.Ingredient[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
         </service>
    </deployment>axis WSDL2Java won�t work anymore. And Sun�s Wireless Toolkit doesn�t work either with this. How can I get this to work with Sun�s Wireless Toolkit 2.2?
    So my questions are:
    Do I really need style=�document� use=�literal� for J2ME?
    Can I only have one parameter as input when I use style=�document� use=�literal� ?
    Why do I need to manally change the parameter names?
    How can I make Sun�s Wireless Toolkit 2.2 understand byte[] ?
    Many thanks for help :) (I have to present a solution in 1 � week to my J2ME teacher L).

    hi,
    i was wandering if you manage to successfully generate the stubs through the wireless toolkit at the end? i am currently having similar problem (i.e., trying to generate stub files based on wsdl from axis)? it seems that the WTK can only handle document/literal format, and so i change the wsdl to that. however, now it complains that it can't handle more than one input part in the message, (which is similar to the problem you had). so did you manage to find a solution to that, or J2ME simply does not support more than one arguement as the input?
    thanks in advance,
    lee

  • Hi..............I Stuk up with a problem in JTree Please, help me any one..

    Hi,
    I created a JTree where the DefaultMutableTreeNode is created at run time and for this node, the leaf items are added dynamically.....Now my problem is, I should get a popup menu when i click on the treenode particularly-----
    * Node1
    -------Node11
    -------Child1
    In this I want a popup only for the Node11 & its child elements if there is any Node2 also i don't want a popup and also for Node1 i don't want, when I am trying this I am getting the Popup to all nodes and child elements, please, help me any one who cross over this problem.............
    Thanks In Advance,
    Regards,
    Sarikakiran

    Firstly, do you know how to detect the right click? (Use a MouseListener.)
    When you receive the MouseEvent for the right-click, you can get the coordinates of the click (i.e. where on the JTree the mouse was clicked).
    You can then use JTree.getPathForLocation to get the path for the clicked node, which is a TreePath object. Use TreePath.getLastPathComponent to find which node was actually clicked on.
    Having determined which node was clicked, you can then make a decision about whether to show a popup menu.

  • ITunes will not install - have tried EVERYTHING - please help

    I recently (yesterday) bought an iPod and yesterday installed the iPod and iTunes software on my computer, with absolutely no problems. Then today, when I tried to get onto the Music Store, I could not access it. (error -3212 was the number, I think...it's been a very long night). After searching a number of forums, I attempted to download the newer versions of iTunes and Quicktime; at the end of this attempted installation, I got the Microsoft message that iTunes "has encountered a serious problem and needs to close."
    Now, several hours later, I have uninstalled and reinstalled the software (with my antivirus software disabled), gone through two system restores (have gone back two days), done the Windows Installer cleanup thing, everything that I have read to do. I went into msconfig and the Quicktime doesn't even show up there. No luck, no luck at all...
    My iPod is of absolutely no use to me without the iTunes. I have installed iTunes on a number of computers and have never encountered this problem. Please help!!
    Sincerely,
    LLM
    Gateway   Windows XP   Laptop

    Hello
    I just bought an Ipod as what tryingto get itunes to load for 5 hours last Friday night and another 4 hours on Saturday til my head exploaded
    I then installed an older version of itunes and it worked but the new version didn't
    In the end I re-installed XP home as a "repair" not clean install so that I wouldn't loose any work on my PC and within 40 minutes or so whatever was missing from my PC was installed and itunes 6 went on with no problem
    My advise is don't go round the houses like I did, just "repair" your XP installation and it's done
    Well, it did for me at least
    Hope this helps

  • Help on creating and deleting xml child elements using Toplink please.

    Hi there,
    I am trying to build a toplink xml demo illustrating toplink acting as the layer between my java code and an xml datasource.
    After pulling my custom schema into toplink and following the steps in http://www.oracle.com/technology/products/ias/toplink/preview/10.1.3dp3/howto/jaxb/index.htm related to
    Click on Mapping Workbench Project...Click on From XML Schema (JAXB)...
    I am able to set up java code which can run get and sets against my xml datasource. However, I want to also be able create and delete elements within the xml data for child elements.
    i.e. in a simple scenario I have a xsd for departments which has an unbounded element of type employee. How does toplink allow me to add and or remove employees in a department on the marshalled xml data source? Only gets and sets for the elements seem accessible.
    In my experience with database schema based toplink demos I have seen methods such as:
    public void setEmployeesCollection(Collection EmployeesCollection) {
         this.employeesCollection = employeesCollection;
    Is this functionality available for xml backended toplink projects?
    cheers
    Nick

    Hi Nick,
    Below I'll give an example of using the generated JAXB object model to remove and add a new node. The available APIs are defined in the JAXB spec. TopLink also supports mapping your own objects to XML, your own objects could contain more convenient APIs for adding or removing collection members
    Example Schema
    The following XML Schema will be used to generate a JAXB model.
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
         elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="department">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="employee" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="employee">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="name" type="xs:string"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>---
    Example Input
    The following document will be used as input. For the purpose of this example this XML document is saved in a file called "employee-data.xml".
    <department>
         <employee>
              <name>Anne</name>
         </employee>
         <employee>
              <name>Bob</name>
         </employee>
    </department>---
    Example Code
    The following code demonstrates how to use the JAXB APIs to remove the object representing the first employee node, and to add a new Employee (with name = "Carol").
    JAXBContext jaxbContext = JAXBContext.newInstance("your_context_path");
    Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
    File file = new File("employee-data.xml");
    Department department = (Department) unmarshaller.unmarshal(file);
    // Remove the first employee in the list
    department.getEmployee().remove(0);
    // Add a new employee
    ObjectFactory objectFactory = new ObjectFactory();
    Employee newEmployee = objectFactory.createEmployee();
    newEmployee.setName("Carol");
    department.getEmployee().add(newEmployee);
    Marshaller marshaller = jaxbContext.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
    marshaller.marshal(department, System.out);---
    Example Output
    The following is the result of running the example code.
    <department>
         <employee>
              <name>Bob</name>
         </employee>
         <employee>
              <name>Carol</name>
         </employee>
    </department>

  • Photoshop Elements continues to crash upon opening - please help

    I continue to get the message that the program must close down two seconds after I open it.  I held down shift when I clicked on organizer and the management screen came up.  I repaired, I optimized and the program continues to show down after two seconds.  It will not give me enought time to click on preferences and change the back up option, which is a suggestion I read on another post.  I am desperate to get into elements.  Working on a thesis project and need to write captions for images and upload to website using Dreamweaver.  Please help me.  I have PLUS and it says I have 19.0 GB of online storage capacity left.  I don't understand why the program is suddenly refusing to stay open.

    Hello.  I appreciate your message below.  The problem is I cannot use the Elements organizer at all.  As soon as I open it, three seconds later, a message pops up that says the program has encountered and error and must close, and then it closes, immediately.  The organizer was working perfect for approx two months until I used a corrupt font in Premier Elements 9 on a video title.  This corrupt font was one of Adobe's program fonts, I did not go import a font, I merely used the Adobe program font selections.  When I tried to apply the font change to my video clips, I was unable to finish on all of the clips, the font was behaving very strange, and the next day, I noticed my elements organizer crashed each time I open it.  I need an Adobe technical person with experience in these matters to tell me what needs to be done to make my elements organizer work again.  I tried to remove the program and reinstall it, and that did not work.  I followed all of your previous suggestions, and none of those worked.  As for the suggestion you give below, I can only open the program under edit since the organizer crashes immediately each time I open it.  When I open the editor and to go EDIT and PREFERENCES, I do not see any option about auto analyzer in any of these options, under Editor.  Also, since my organizer worked perfectly until the corrupt font issue happened, I doubt seriously if the crash issue is related to auto analyzer.  That was not causing a problem before the corrupt font issue occurred.  I paid a lot of money and bought four Adobe programs, Elements, Premier Elements 9, Flash and Dreamweaver, and I need the Elements Organizer to work and not crash each time I open it.  What do I need to do to accomplish this?  I have an enormous amount of photos and videos in that program at this point since I am completing a thesis project for my Master's Degree.  Who can tell me what needs to be done to fix this problem?  I downloaded the patch at the Adobe site weeks ago and it did not help.  Judy Moss

Maybe you are looking for

  • I tunes will not open unless ipod is connected

    I have downloaded and totally remove itune 3-4 times. It will not open unless the ipod is connected. I keep getting a message that says :the itunes folder can not be found or created. The default folder is located in "my music". what do i have to do

  • Where Can I Get an Older Version of iTunes?

    iTunes 10.6.1 has frozen and stopped functioning on a perfectly-maintained Windows XP machine. Where can I download the two versions previous to 10.6.1? Thank you.

  • Error building source distributi​on

    I get an error when building source distribution saying: "LabVIEW cannot find a file that is a dependency of a Startup, Exported, or Always Included VI. File Not Found: The file at 'C:\Program Files (x86)\National Instruments\LabVIEW 2011\vi.lib\utf\

  • Texting on a Pearl is worse than getting teeth pulled..

    The only way I can type a text message is to hit space after every letter then go back and delete the spaces. If I do not put the space in and continue to the next letter the BB will change the entire word. Any suggestions? Even typing "ttyl" is quie

  • Domain User Access Log

    Hi, How to monitor following logs for Domain user in widows 2008 R2 server, 1) User creation 2) User Deletion 3) login log 4) logout  log