Error passing byte array in soap request

Hi,
i am trying to pass byte arrays (and also java.lang.Byte array) as parameter in
a soap request.
to do so i have defined a simple web service under weblogic 7.0.
then i test it through the WebLogic Webservice standard testing home page.
the value field for testing my web service is already filled by weblogic with:
<bytes xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:base64Binary">aopd</bytes>
i only need to invoke my web service to test it.
then an exception is raised:
javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
error decoding base64binary - with nested exception: [java.io.IOException: Error
in encoded stream] javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
error decoding base64binary - with nested exception: [java.io.IOException: Error
in encoded stream] at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:301)
at weblogic.webservice.tools.pagegen.SampleInstance.getJavaObject(SampleInstance.java:130)
at weblogic.webservice.server.servlet.ServletBase.getJavaParams(ServletBase.java:296)
at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:239)
at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:306)
at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:198)
at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:124)
at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:224)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
any idea?

Hi,
Looks like a known bug (CR087883).
Thanks,
Bruce
cyrille puget wrote:
Hi,
i am trying to pass byte arrays (and also java.lang.Byte array) as parameter in
a soap request.
to do so i have defined a simple web service under weblogic 7.0.
then i test it through the WebLogic Webservice standard testing home page.
the value field for testing my web service is already filled by weblogic with:
<bytes xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:base64Binary">aopd</bytes>
i only need to invoke my web service to test it.
then an exception is raised:
javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
error decoding base64binary - with nested exception: [java.io.IOException: Error
in encoded stream] javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
error decoding base64binary - with nested exception: [java.io.IOException: Error
in encoded stream] at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:301)
at weblogic.webservice.tools.pagegen.SampleInstance.getJavaObject(SampleInstance.java:130)
at weblogic.webservice.server.servlet.ServletBase.getJavaParams(ServletBase.java:296)
at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:239)
at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:306)
at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:198)
at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:124)
at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:224)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
any idea?

Similar Messages

  • How to pass byte array / binary data to a webservice as parameter in osb

    i have a webservice that has a byte array input parameter. i tried to use this WS in a message flow via service-callout. the problem i encountered is the following: since webservice call by using service-callout requires you to use an xml input as part of soap message, i insert both of $body/ctx:binary-content and $body/ctx:binary-content/@ref variables individually into this xml-message to pass binary-data to WS. When i debug the code, i see that it make calls to WS with $body/ctx:binary-content/@ref parameter, but the byte array passed is empty(not NULL)...
    note: i tried java-callut instead of service-called and used $body/ctx:binary-content as input parameter it worked. i think, this is because java-callout doesnt need an xml input and enable to take variables as is...
    can anybody help me to solve the problem with service-callout please?
    here is the input i use to call ws with service-callout method...
    <iso2Xml xmlns="http://www.mycompany.com.tr">
    <request>{$body/ctx:binary-content/@ref}</request>
    </iso2Xml>
    and this is my WS's signature:
    @WebMethod
    public String iso2Xml(byte[] request)

    Hi
    See this thread
    /message/2187817#2187817 [original link is broken]
    Kind Regards
    Mukesh

  • Passing byte Arrays broken in 1.4?

    I have an application that I am porting from 1.2.2 to 1.4. Code that used to work fine is now broken. All byte arrays that are passed through the JNI have each element set to 0.
    Is this a known bug, or has something changed in the JNI API? Here is a sample of my code which used to work fine, but is now broken:
    From a .h:
    * Structure for information about a single target
    struct TARGET_INFO_STR
    char Name[MAX_TARGET_NAME_SIZE + 1];
    char Protocol[MAX_PROTOCOL_NAME_SIZE + 1];
    char State[MAX_STATE_SIZE];
    int Selected;
    int Error;
    int Online;
    * Structure returned for a target request
    struct TARGET_LIST_STR
    int Target_Count;
    int Selected_Count;
    struct TARGET_INFO_STR Targets[MAX_TARGETS];
    From the JNI C code:
    JNIEXPORT void JNICALL Java_merge_jni_mbinterface_C_1Query_1Targets (JNIEnv *A_env,
    jobject A_obj)
    struct TARGET_LIST_STR Reply;
    int i;
    jbyteArray name;
    jbyte *bptr;
    int j;
    jclass class = (*A_env)->GetObjectClass(A_env, A_obj);
    jmethodID mid = (*A_env)->GetMethodID(A_env, class, "J_add_target",
         "([BLjava/lang/String;Ljava/lang/String;ZZZ)V");
        jstring protocol;
        jstring state;
        Reply = GetTargets();
        /* Pass the target information to the GUI */
        for (i = 0; i < Reply.Target_Count; i++) {
            protocol = (*A_env)->NewStringUTF(A_env, Reply.Targets[i].Protocol);
    state = (*A_env)->NewStringUTF(A_env, Reply.Targets.State);
    name = (jbyteArray)(*A_env)->NewByteArray(A_env, strlen(Reply.Targets[i].Name));
    bptr = (jbyte *)(*A_env)->GetByteArrayElements(A_env, name, NULL);
    for (j=0;j<strlen(Reply.Targets[i].Name);j++)
    bptr[j] = (jbyte)Reply.Targets[i].Name[j];
    (*A_env)->CallVoidMethod(A_env, A_obj, mid,
                   name,
                   protocol,
                   state,
                   (jboolean)Reply.Targets[i].Selected,
                   (jboolean)Reply.Targets[i].Online,
    (jboolean)Reply.Targets[i].Error );
    (*A_env)->ReleaseByteArrayElements( A_env, retn, bptr, 0 );
    (*A_env)->DeleteLocalRef( A_env, name );
    (*A_env)->DeleteLocalRef( A_env, protocol);
    (*A_env)->DeleteLocalRef( A_env, state);
    (*A_env)->DeleteLocalRef( A_env, class );
    return;
    Here is the signature of the Java side of this call:
    public void J_add_target (byte[] name, String protocol, String state,
                   boolean selected, boolean online, boolean error) {
    The strings and booleans are all passed back fine, the byte array is the proper length, but all of its values are 0.

    Your call to (*A_env)->ReleaseByteArrayElements( A_env, retn, bptr, 0 );
    should be done before the CallVoidMethod call.
    Otherwise you will get exactly the effect you describe if the array was copied by GetByteArrayElements instead of it giving you a direct pointer to the array data. This may indeed be a change between the earlier version and 1.3 or 1.4.
    Sylvia.

  • [SOLVED] g++ errors saying byte array is unsigned char array

    Does anyone know why this code
    #include <iostream>
    #include <string>
    #include <iomanip>
    #include "cryptopp/osrng.h"
    using namespace std;
    int main() {
    const unsigned int BLOCKSIZE = 16*8;
    byte * pcbScratch = (byte *)calloc(BLOCKSIZE, sizeof(byte)); // Same error happens with byte pcbScratch[BLOCKSIZE]
    CryptoPP::AutoSeededRandomPool rng;
    rng.GenerateBlock(pcbScratch, BLOCKSIZE);
    for(unsigned int i = 0; i < BLOCKSIZE; i++) {
    cout << *(pcbScratch+i);
    return 0;
    would cause this error?
    g++ TestClass.cpp
    /tmp/cc7wp4jU.o: In function `main':
    TestClass.cpp:(.text+0x202): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned int)'
    Last edited by rwdalpe (2011-06-15 03:22:30)

    Sure thing!
    I used to post on the forum under the username l33tunderground, but have since decided I would rather go with a less childish username.
    To be honest, I just started a project in Eclipse and attempted to include the Crypto++ libraries, which I installed through pacman. I don't know if there's anything special I need to do to properly include the library, as the Crypto++ documentation is painfully lacking in basics.
    Edit: Shameless plug to the Arch forums
    I've found in the past that Arch users are incredibly reliable and helpful, so I posted here rather than a traditional programming forum.
    Last edited by rwdalpe (2011-06-15 03:13:22)

  • Error while trying to send soap request with Altova

    Hello,
    I m getting this error, can anyone help me please?
    ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.NullPointerException

    With so little information, I doubt anyone will be able to help you out. Altova forums could be better place to lookout for the solution.

  • Problem with string constructor when using byte array as parameter

    I am creating a string using constructor and passing byte array as parameter.This byte array i am getting from MessageDigest's digest() method,i.e. a hash value.
    The problem is when i iterate through byte array i can able to print all the values in byte array.But when i construct a string from that byte array and printing that string ,that is printing some unknown characters.
    I don't know whether i need to pass charsequence to the constructor and the type of charsequence.Can anybody help me?
    Thanks in advance

    Is there some problem today? I'm getting this sort of thing all over.
    I already told you and so did Kayaman. Don't. String is not a holder for binary data. You have to Base-64 encode it. If you don't you cannot reconstruct the original binary digest value, so putting it into a database is completely utterly and entirely pointless.
    Is that clear enough?

  • Passing variable having value as whole SOAP request to command while invoking ODI WS call

    When passing variable in place of soap request message (variable value is whole SOAP request message prepared using procedure) in ODI Invoke WebService command like -->
    OdiInvokeWebService "-URL=url...." "-PORT_TYPE=..." "-OPERATION=..." "-RESPONSE_MODE=NEW_FILE" "-RESPONSE_FILE_CHARSET=UTF8" "-RESPONSE_XML_ENCODING=UTF-8" "-RESPONSE_FILE=..." "-RESPONSE_FILE_FORMAT=SOAP" "-HTTP_USER=..." "-HTTP_PASS=..."
    #SOAPREQUESTMESSAGE
    Gives error :
    ODI-1226: Step OdiInvokeWebService 1 fails after 1 attempt(s).
    ODI-1241: Oracle Data Integrator tool execution fails.
    Caused By: com.sunopsis.wsinvocation.SnpsWSInvocationException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '#' (code 35) in prolog; expected '<'
    at [row,col {unknown-source}]: [1,1]
        at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.loadFromXML(AbstractMessageImpl.java:333)
        at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.loadFromString(AbstractMessageImpl.java:348)
        at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.fromString(AbstractMessageImpl.java:403)
        at com.sunopsis.wsinvocation.client.impl.AbstractJWSDLParserImpl.fromXML(AbstractJWSDLParserImpl.java:272)
        at com.sunopsis.wsinvocation.client.impl.AbstractJWSDLParserImpl.getWebServiceRequestByOperation(AbstractJWSDLParserImpl.java:260)
        at com.sunopsis.dwg.tools.common.WebserviceUtils.getSOAPMessage(WebserviceUtils.java:94)
        at com.sunopsis.dwg.tools.common.WebserviceUtils.invoke(WebserviceUtils.java:138)
        at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java:327)
        at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
        at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
        at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
        at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
        at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
        at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
        at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
        at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
        at java.lang.Thread.run(Thread.java:662)
    Thanks in anticipation...

    the used variable 'SOAPREQUESTMESSAGE' is being created in a procedure using jython.
    1. Can we use this variable (SOAPREQUESTMESSAGE) value in the next step that is while invoking web service request (can it persist) ?
    2. If not then how can we use this variable value to invoke ws request in next step ?
    Would like to appreciate help.
    Pls reply.

  • How to pass authentication token with the request. Error in executing

    Hi,
    I am trying to do a service call.  This service is provided by a third party.  I used SOAP UI tester to test the service and it gives proper response for a request.
    I tried to create a client proxy and execute the method call, but it fails.  In SICF recorder, I found that the request that goes into the service does not contain the authentication token.  But in the SOAP UI tool when I input the WSDL file, it created a sample request, with authentication token in header section.
    But the proxy class generated in the system, contains a input structure, which does not have this authentication structure in it.
    Please guide me if there is any different method used to pass this authentication information.  The structure of authentication structure is
    <web:licenseKey>?</web:licenseKey>
            <web:password>?</web:password>
            <web:username>?</web:username>
    I thought that this authentication information should be given in settings of logical port.  But the logical port has only user name and password.  There is no place holder for License key.
    In summary: My query is that, there is no structure generated for SOAP header where I can pass authentication information, hence the request that goes into the service from SAP does not contain the authentication token.  This results in a error non-soap message/error type 500.
    Sample request that worked in SOAP UI tester is
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.smc.com">
       <soapenv:Header>
          <web:AuthenticationToken>
             <web:licenseKey>XYZA</web:licenseKey>
            <web:password>ABC123</web:password>
            <web:username>suresh<AT>gmail<DOT>com</web:username>
          </web:AuthenticationToken>
       </soapenv:Header>
       <soapenv:Body>
          <web:isReady/>
       </soapenv:Body>
    </soapenv:Envelope>
    The request that goes out of the SAP system does not contain, the AuthenticationToken part.
    Thanks and best regards,
    Suresh.

    You would need to write a webservice handler for your physical data service to implement the security.
    http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/datasrvc/How%20To%20Create%20SOAP%20Handlers%20for%20Imported%20WSDLs.html

  • Error while sending a soap request from XML SPY to a webservice in XI

    Hi ,
    I published a webservice om the XI end and testing it with consuming the WSDL file in XML SPY and sending a soap request from there.
    I am getting the following error .
    <b>com.sap.aii.af.mp.module.ModuleException: either no channelID specified or no channel found for the specified party, service, and channel name</b>, MessageServlet(Version $Id: //tc/xi/645_VAL_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#4 $)
         at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:380)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Is this error due to the user authentication or due to some other issue .
    Please do let me know soon .
    Thanks a lot
    Nikhil

    Hi Ricardo ,
    I have the correct port now.
    the url looks like
    http://<host>:50000/XISOAPAdapter/MessageServlet?channel=:SIEBEL_DEV:SOAP_CUST
    when I am testing it in the XML spy. and send a soap server request. I am getting the popup for user authentication . once i put my user id it gives me a error saying
    <b>HTTP operation 'POST' could not be performed on URL
    '/XISOAPAdapter/MessageServlet?channel=:SIEBEL_DEV:SOAP_CUST&amp;version=3.0&amp;Sender.Service=SIEBEL_DEV&amp;Interface=http%3A%2F%2FOFCOM%2FUNIFY%2FCustomerMaster%5EMI_CUST'  due to an error :
    The connection to the server was terminated abnormally</b>
    Any Idea as to why is such a error is coming
    Thanks for the help
    Nikhil

  • Error when creating BufferedImage with IndexColorModel from a byte array.

    Hi, I have a 1-dimentional byte array and an IndexColorTable, and I can't figure out how to combine the 2 into an BufferedImage without unnecessary copying/reallocating of the image buffer.
    The color model I have is:
    int [] cmap = new int [numColors];
    cmap[i++] = 0xffa0f000;  /etc.
    new IndexColorModel(8, 22, cmap, 0, true,  transparentIndex,  DataBuffer.TYPE_BYTE );Thanks for your help
    -Ben
    Ps.
    I've was looking at some example code (http://javaalmanac.com/egs/java.awt.image/Mandelbrot2.html?l=rel), and can't figure out how to go from the color model they're using to the one I have (the 8 bit one specified above). When I replace the 4bit colormodel in the code below with the 8bit color model specified above, I get the following error:
    [java] java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 5120 height = 3520 #numDataElements 1 dataOff[0] = 0 is incompatible with ColorModel IndexColorModel: #pixelBits = 8 numComponents = 4 color space = java.awt.color.ICC_ColorSpace@c51355 transparency = 2 transIndex = 22 has alpha = true isAlphaPre = false
    [java] at java.awt.image.BufferedImage.<init>(BufferedImage.java:613)
    Code:
    byte[] pixelArray = (byte[]) getData_CHAR();                
    int width = 5120;
    int height = 3520;
    int numbytes = width*height;
    //create DataBuffer using byte buffer of pixel data.
    DataBuffer dataBuffer = new DataBufferByte(pixelArray, numbytes, 0);
    //prepare a sample model that specifies a storage 8-bits of pixel data in an 8-bit data element
    int bitMasks[] = new int[]{0xf};
    SinglePixelPackedSampleModel sampleModel = new SinglePixelPackedSampleModel(DataBuffer.TYPE_BYTE, width, height, bitMasks);
    //create a raster using the sample model and data buffer
    WritableRaster writableRaster = Raster.createWritableRaster(sampleModel, dataBuffer, new Point(0,0));
    //generate 16-color model
    byte[] r = new byte[16];
    byte[] g = new byte[16];
    byte[] b = new byte[16];
    r[0] = 0; g[0] = 0; b[0] = 0;
    r[1] = 0; g[1] = 0; b[1] = (byte)192;
    r[2] = 0; g[2] = 0; b[2] = (byte)255;
    r[3] = 0; g[3] = (byte)192; b[3] = 0;
    r[4] = 0; g[4] = (byte)255; b[4] = 0;
    r[5] = 0; g[5] = (byte)192; b[5] = (byte)192;
    r[6] = 0; g[6] = (byte)255; b[6] = (byte)255;
    r[7] = (byte)192; g[7] = 0; b[7] = 0;
    r[8] = (byte)255; g[8] = 0; b[8] = 0;
    r[9] = (byte)192; g[9] = 0; b[9] = (byte)192;
    r[10] = (byte)255; g[10] = 0; b[10] = (byte)255;
    r[11] = (byte)192; g[11] = (byte)192; b[11] = 0;
    r[12] = (byte)255; g[12] = (byte)255; b[12] = 0;
    r[13] = (byte)80; g[13] = (byte)80; b[13] = (byte)80;
    r[14] = (byte)192; g[14] = (byte)192; b[14] = (byte)192;
    r[15] = (byte)255; g[15] = (byte)255; b[15] = (byte)255;
    //create buffered image    
    ColorModel colorModel = new IndexColorModel(4, 16, r, g, b);
    BufferedImage image = new BufferedImage(colorModel, writableRaster, false, null);Message was edited by:
    ben_weisburd
    Message was edited by:
    ben_weisburd

    I had the same problem too.
    anyone found the solution for this problem?
    thanks
    Bruno Rabino
    When I try to make a MD-form, where the base-table for the detail contains a column with a BLOB-datatype. I get following error when I finish creation of the form.
    Error: Exception from wwv_generate_component.build_procedure (WWV-01821)
    Error creating module: ORA-01403: no data found (WWV-16042)
    When I use the table with the BLOB as master or in a form, it works fine.
    Has anyone else experienced this problem? Or knows a way to fix or work around it. Thanks in advance.
    Portal version: 3.0.6.6.5
    null

  • Error while sending SOAP Request to server through XML Spy

    i have created a webservice to jdbc scenario application and when i tried to check my webservice with XML Spy by giving inputs to wsdl file as SOAP Request to server, its showing the error like this:
    <b><u>Http error : could not POST File</u></b>
    It would be good if u explain step by step procedure how to solve the issue.
    Thanks & Regards.,
    Pushparaju.B

    This is the error showing after clicking OK button after it showed the error
    Http error : could not POST File
    <b><?xml version="1.0"?>
    <!-- see the documentation -->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>Server Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>DeliveryException</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:PL_TIMEOUT:
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:451)
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:125)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:831)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
              ]]></text>
                        </s:SystemError>
                   </detail>
              </SOAP:Fault>
         </SOAP:Body>
    </SOAP:Envelope></b>
    yes i have the role of XIAPPLUSER
    scenario has created by me and i have the authorization to enter into XI

  • Error with SOAP Request to calendar web service

    Hi
    I'm sending the following SOAP request to a calendar web service to create an appointment in the calendar. The response returns what seems to be a syntax error ("The Create method did not have a proper element in the request") but I can't see the cause of the fault. Any suggestions on what it may be? It's an 11g DB.
    Many thanks
    -x-POST-x-
    POST /ocws-bin/ocas.fcgi HTTP/1.0
    Content-Type: text/xml; charset="utf-8"
    Content-Length: 993
    SOAPAction: SOAPAction: "http://www.oracle.com/WebServices/Calendaring/1.0/Create"
    Connection: close
    <SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header><auth:BasicAuth xmlns:auth="http://soap-authentication.org/2002/01/">
    <Name>CalendarName</Name><Password>CalendarPassword</Password>
    </auth:BasicAuth> </SOAP-ENV:Header>
    <SOAP-ENV:Body><cwsl:Create xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/"><CmdId>ITS APPOINTMENT</CmdId><iCalendar>
    <vcalendar prodid="-//Oracle//Calendaring//Calendarlet//EN" version="2.0">
    <vevent><class>PUBLIC</class>
    <description>Calendar Body</description>
    <dtstart value="DATE-TIME">20102905T120000</dtstart>
    <duration>P00DT0H30M00S</duration>
    <location>Location of user</location>
    <summary>Incident ID - (name of user])</summary>
    <uid>XGjRVnpReQALNsILlBlvcyXGCoUyXF</uid>
    <x-oracle-eventtype>APPOINTMENT</x-oracle-eventtype>
    <priority>5</priority>
    </vevent>
    </vcalendar>
    </iCalendar></cwsl:Create></SOAP-ENV:Body></SOAP-ENV:Envelope>
    -x-RESPONSE-x-
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 27 May 2010 08:22:16 GMT
    Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a mod_fastcgi/2.4.6
    OCAS-ProcTime: 407
    Connection: close
    Content-Type: text/xml; charset=utf-8
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server.Error::System::SOAPRequest</faultcode>
    <faultstring>The Create method did not have a proper element in the request</faultstring>
    <detail>
    <cwsl:Error xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/">
    <Class>Error::System::SOAPRequest</Class>
    <Code>0020-00-00-00000034</Code>
    <Line>3180</Line>
    <FileName>SOAPRequestHandler.cpp,v</FileName>
    <Version>1.57</Version>
    <LastMod>2007/05/30 21:13:25</LastMod>
    <Author>pscattol</Author>
    <Date>Thu May 27 09:22:16 2010</Date>
    <PID>26152</PID>
    <TID>3044838304</TID>
    <Level>Error</Level>
    </cwsl:Error>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>

    Hi,
    I am having problem using dii client, while sending a
    request to c# webservice. error follows
    QName QNAME_TYPE_STRING = new QName(NS_XSD,
    "string");
    call.setReturnType(QNAME_TYPE_STRING);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
    "GetDetails"));
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);Do you need another call to addParameter here?
    String[] params = { "02", "2004" };
    String result = (String)call.invoke(params);

  • ERROR while building the SOAP Request in OAM

    Hi all,
    In a brief step what my requirement is.
    Need to build an SOAP request using java objects generated from XSD files comes with installation directory by setting all the required values.
    What i have done?
    ---- To generate Java objects from given XSD files i am using Castor tool.
    ---- Coming to my requirement i have to create a user through create workflow for this i created objects for workflowSaveCreateProfile.xsd using castor framework and i am trying to marshal (building the SOAP Request). but it's giving me an error telling that required field is needed as below.
    Caused by: ValidationException: The following exception occured while validating field: _attributeName of class: com.trewport.oblix.ObTicketAttr: The following exception
    occured while validating field: obDisplay of class: com.trewport.oblix.AttributeName: The field 'obDisplayChoice' is a required field of class 'com.trewport.oblix.ObDis
    play;
    - location of error: XPATH: /ObTicketAttr
    The following exception occured while validating field: obDisplay of class: com.trewport.oblix.AttributeName: The field 'obDisplayChoice' is a required field of class '
    com.trewport.oblix.ObDisplay
    at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:278)
    at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:1065)
    at org.exolab.castor.xml.Validator.validate(Validator.java:135)
    at org.exolab.castor.xml.FieldValidator.validateInstance(FieldValidator.java:326)
    at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:271)
    ... 19 more
    I am not getting how to set the values in that generated java objects.
    Please help me out.
    Note: For compiling and running the java objects i have to use java 1.4.
    Please let me know your thoughts.
    Thanks & Regards,
    Siva Pokuri.

    This error occurs due to the following customisaton, Please
    check this :
    Please can you check if the Pernr used
    has correct information like It0105 etc, also the rules are
    correctly defined.
    Webmo feature is activated or no?
    For the Employee, First of all check the Period Work Schedule also
    the Quotas of the pernr needs to maintained in 2006, Please do
    this customisation and it should solve the issue.
    Maintain the absence quota in the IT2006 and then try once.
    Also make sure that the Settings in Webmo and PTARQ etc all is done
    The pernr belongs to the a Rule and have absences defined for him.

  • Error:SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. --- There is an error in XML document (1, 447). --- Input string was not in a correct format.

    Hi All,
        We have a scenario of FTP-->PI---> Webservice.  While triggering the data in the FTP, it is failing in the PI with the below error
    SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 447). ---> Input string was not in a correct format.
    Can you please help?

    Hi Raja- It seems to be a data quality issue.
    Check for the value @ 1447 position in the xml message that you are trying to send to web service..
    may be a date filed/decimal value which is not in expected format.

  • Error when posting a SOAP request

    Hi all,
    Facing error when posting the SOAP request and after entering the Server Username and password giving error that http not found and url
    The URL i follow is http://<hostname>:<port>/XISOAPAdapter/MessageServlet?version=7.0&channel=:BusinessSystem:PI_SOAP_CC
    can any one of you tell me in place of XISOAPAdapter what should i place?
    Please help me to post the SOAP request to PI server.
    Thanks in advance ,
    Manohar.

    Hi ,
    copy the same URL  (Endpoint that you had given while generating wsdl file) to the browser and chek the status. ( http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel)
    See the below URL for the same i.e. SOAP adapter...http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    You should get response something like this '
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#15 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    ModuleProcessorRemote not instantiated
    This  is make sure that webservice endpoint is given correctly. Don't forget to give username and password for connecting to XI server. user should xiappluser .
    Ranjeet Singh.

Maybe you are looking for

  • No Workflow created for BPM

    Dear Experts, I'm trying to do a N:1 mapping using BPM. i have two different files coming in and i have to merge into one. i used multimapping and designed the Integration process based on the example given in SAP BASIS http://sap.com/xi/XI/System/Pa

  • How do I get the latest camera raw for Lightroom 4.2?

    How do I get the latest camera raw for Lightroom 4.2?

  • Windows cannot see Ipod #5482

    I have read through all of the previous posts on the subject. I have noticed my situation is similar to some on the board here. My Ipod is recognized by windows when it is first plugged into the computer. After the Ipod updates it disappears from win

  • More than one key in a Characteristic

    Hi there, I was wondering if it was possible to have more than one key in a characteristic? I have one with the main key, but then two more, and the text for the characteristic is dependent on all of these. At the moment when i run the DTP to the tex

  • Target value in value contracts

    Hello people. I have an issue with value contracts in ECC 6.0 (trx VA41). Usually when you put the target value in your resume screen, that value goes directly to the WK00 condition (because I´m working with the standart price determination Wk0001).