Invoking JVM with C++

I'm having the problem identical to the one in this post:
http://forum.java.sun.com/thread.jspa?forumID=52&threadID=599688
I get the same error messages:
invoke.obj : error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12
invoke.obj : error LNK2001: unresolved external symbol __imp__JNI_GetDefaultJavaVMInitArgs@4
Debug/invoke JVM.exe : fatal error LNK1120: 2 unresolved externals
Trouble is that I've added the path to jvm.dll to the environmental variables, "additional include directories" in the general tab of the project settings (Visual studio .net), and "additional library directories" in the linker settings. None of this seems to work. Anyone know of a solution to this? Thanks for the help.
Curtis

Thanks for the information.
I agree that if there is an error in C, I would get exception outside JVM error. However, I have checked for the problem in C. There is none. Besides, the fundamental problem seems to be the 'lock' on the toolkit - say X windows / motif puts - which result in JVM not getting the graphics AWT toolkit. It looks to be bit of a deficiency in JVM since it should have a way out when the native toolkit is not available. Ideally, Java should offer a ready made choice of another implemented Toolkit class which can be independently loaded and which uses its own low level calls. I am also trying to look for such 3rd party classes to do the same.
Thanks.

Similar Messages

  • Find user classpath while invoking JVM

    Hello,
    I am invoking JVM in my C+ dll that will query Oracle using java classes. VC++ 6, JDK1.4.
    I set the "-Djava.class.path=.;" and it finds the my class. But the problem is, it doesnt find the Oracle classes that I have put in classpath environment variable. (from command line the program runs fine)When I copy the whole classpath from the system variable in to my program, it works fine too.
    But we need to make an install and can not hard code the class path in my program. How do I get user classpath that is in a system env. variable while invoking JVM?
    I am sure this question has been asked before but I couldnt find answer after a couple of hours of seraching.
    Thanks a lot .
    Pranav.

    As you have found, the JVM library itself doesn't use the CLASSPATH environment variable. Your C++ code needs to read the CLASSPATH environment variable and include its contents in the "-Djava.class.path=" option that you pass to the JVM. See JDK source file java.c for an example.
    However, users would probably prefer not setting CLASSPATH at all. It would be better if you could locate the Oracle classes at runtime based on something else like a registry value set by the Oracle installer, or by just being installed in a well-known location. If you bundle the Oracle classes with your app, then you have full control over where they get installed relative to your app.
    -slj-

  • Accessing swing by invoking jvm

    plz see the following code, when i try to access the swing functionality, jvm crashes!!
    ////// code to access jvm /////
    invoke jvm & call java's main static method
    works fine for the java program below unless i remove the comments /*extends JFrame*/
    ////// java code ///////
    import javax.swing.*;
    class Progg /*extends JFrame*/{
    public void abc()
    System.out.println("in abc");
    }//end of abc
    public static void main(String args[])
    Progg pg=new Progg();
    pg.abc();
    System.out.println("Hello World"+args[0]);
    }//end of main
    }//end of class Progg
    Result:
    in abc
    Hello World from C!
    Result: (if i remove comments)
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (455843455054494F4E530E4350500101), pid=2568, tid=2476
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
    what is the error in this program to access the swing functionality?
    plz help
    Thanks in advance

    plz check with this:
    #include <windows.h>
    #include <process.h>
    #include <string>
    #include "jni.h"
    using namespace std;
    #define JAVALIB "C:\\Program Files\\Java\\jre1.5.0_06\\bin\\client\\jvm.dll"
    #define JAVAHOME "C:\\Program Files\\Java\\jre1.5.0_06\\bin\\client\\jvm.dll"
    typedef jint (JNICALL CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
    JavaVM *jvm = NULL;
    CreateJavaVM_t *CreateJavaVM = NULL;
    HMODULE hJvm = NULL;
    HANDLE m_mMutex;
    int EndThread = 0;
    int main(int argc, char* argv[])
         hJvm = LoadLibrary(JAVALIB);
         if(hJvm == NULL)
              return -1;
         CreateJavaVM = (CreateJavaVM_t *)GetProcAddress(hJvm, "JNI_CreateJavaVM");
         if (CreateJavaVM == NULL)
              FreeLibrary(hJvm);
              hJvm = NULL;
              return -1;
         JNIEnv *env;
         JavaVMInitArgs vm_args;
         JavaVMOption options[20];
         JavaVM *jvm;
    jclass cls;
    jmethodID mid;
    jstring jstr;
    jclass stringClass;
    jobjectArray args;
         // jmethodID constructorID;
         //jobject javaGUI;
         int NumOptions = 0;
         string sJavaPath = "-Djava.home=";
         sJavaPath += JAVAHOME;
         char JavaPathBuffer = (char )malloc(sJavaPath.size()+10);
         if(JavaPathBuffer == NULL)
              return -1;
         strcpy(JavaPathBuffer, sJavaPath.c_str());
         options[NumOptions].optionString = JavaPathBuffer;
         NumOptions++;
         vm_args.version = JNI_VERSION_1_4;
         vm_args.options = options;
         vm_args.nOptions = NumOptions;
         vm_args.ignoreUnrecognized = JNI_FALSE;
         jint res = CreateJavaVM(&jvm, (void **)&env, &vm_args);
         if(res < 0)
              free(JavaPathBuffer);
              FreeLibrary(hJvm);
              hJvm = NULL;
              jvm = NULL;
              return -1;
         free(JavaPathBuffer);
         if(jvm == NULL)
              return -1;
         cls = env->FindClass("Progg");
         mid = env->GetStaticMethodID(cls, "main",
    "([Ljava/lang/String;)V");
    jstr = env->NewStringUTF(" from C!");
         stringClass = env->FindClass("java/lang/String");
         args = env->NewObjectArray(1, stringClass, jstr);
    //constructorID = env->GetMethodID(cls,"<init>","()V");
    //javaGUI = env->NewObject(cls,constructorID);
         jvm->DestroyJavaVM();
         jvm = NULL;
         FreeLibrary(hJvm);
         hJvm = NULL;
         return 0;
    although its working fine but as soon as i jump for swing jvm crashes!!
    plz verify this cod and above java code
    Thanks again

  • Creating Multiple JVMS with JNI_CreateJavaVM

    Hey there
    I'm trying to create 2 JVMS in from within a C++ program - in order to start a couple of Java servers. I've been hunting around the discussion groups and the web and there are references to not being able to create more than a single JVM with JDK 1.1 but it's claimed you can do it with JDK 1.2 onwards. I just tried it and the second invocation of JNI_CreateJavaVM returns -1. I then found a page saying that the JNI_CreateJavaVM invocations have to be in separate threads so I created a couple of threads using AfxBeginThread (using Win NT) and called JNI_CreateJavaVM once within each thread. The thread which gets to the JNI call second still returns -1.
    Has anyone got this to work ???

    You can only create one Java VM per process. For additional threading into the VM, you will need to call the AttachCurrentThread method on any additional thread that you want to execute in the VM. This only works for Win32 in 1.1

  • Is it possible to invoke IE with UTL_HTTP.Request

    Hi,
    Is it possible to invoke IE with UTL_HTTP by specifying the URL?
    DECLARE
    LV_RET VARCHAR(2000);
    BEGIN
    SELECT UTL_HTTP.REQUEST('http://www.oracle.com')
    INTO LV_RET
    FROM DUAL;
    END;
    Thanks in Advance
    Thanks & Rgds
    M T

    Hi!
    Pls go through the following link --
    [url http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/x/Utl_Http_Package_Enhancements/Cr_Using_Utl_Http.htm]UTL_HTTP In Oracle
    Regards.
    Satyaki De.

  • How to use INVOKE function with INT parameter types

    Can you tell me how to use invoke function with int parameter type ?

    Pass the int as an Integer.

  • Trying to invoke HTTPService with SOAP request

    Hi all,
    I have been trying to invoke a HTTPService with a SOAP request.
    Most of the times I get an error saying that the client has invoked
    HTTP with get instead of a POST eventhough my code takes care of
    it. Any clue on this? I have copied the code snippet below which
    has the SOAP request in a variable message.
    <?xml version="1.0"?><!--
    fds\rpc\WebServiceAddHeader.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    height="628" width="924">
    <mx:Script>
    <![CDATA[
    import mx.messaging.messages.HTTPRequestMessage;
    import mx.messaging.messages.SOAPMessage;
    var message:SOAPMessage = new SOAPMessage();
    public var msg:HTTPRequestMessage = new
    HTTPRequestMessage();
    public function headers():void {
    msg.contentType = HTTPRequestMessage.CONTENT_TYPE_SOAP_XML;
    msg.method = HTTPRequestMessage.POST_METHOD;
    msg.url = "
    http://ldlt7316.wellsfargo.com:8016/hulaweb/FrameworkServletListener";
    msg.body = <SOAP-ENV:Envelope xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:msg="
    http://service.wellsfargo.com/entity/message/2003/"
    xmlns:hcfg="
    http://service.wellsfargo.com/provider/HCFG/entity/envelope/2004/"><SOAP-ENV:Header><msg:W FContext><msg:messageId>1175034929937</msg:messageId><msg:sessionSequenceNumber>1</msg:ses sionSequenceNumber><msg:creationTimestamp>2007-03-27T04:35:29-0600</msg:creationTimestamp> <msg:originatorId>aow</msg:originatorId><msg:initiatorId>AOW</msg:initiatorId></msg:WFCont ext><hcfg:hulaContext><service>ApplicationDataService</service><action>getApplicationByDea lID</action><msg:processingMode>sync</msg:processingMode><contextType>SERVICE_REQUEST</con textType><password>PASSWORD123</password><msg:behaviorVersion>1</msg:behaviorVersion></hcf g:hulaContext></SOAP-ENV:Header><SOAP-ENV:Body><ns:getLendingData
    xmlns:ns="
    http://service.wellsfargo.com/provider/HCFG/common/lendingDataTransfer/getLendingData/2006 /"><servicePreferences><ns1:maximumWaitTime
    xmlns:ns1="
    http://service.wellsfargo.com/provider/HCFG/entity/common/2004/">600</ns1:maximumWaitTime> <ns1:maxReturn
    xmlns:ns1="
    http://service.wellsfargo.com/entity/message/2003/">10</ns1:maxReturn></servicePreferences ><lendingTransaction><transactionDetail>
    <ns1:dealId xmlns:ns1="
    http://service.wellsfargo.com/provider/HCFG/entity/transactionDetail/2005/">
    323010
    </ns1:dealId></transactionDetail></lendingTransaction></ns:getLendingData></SOAP-ENV:Body ></SOAP-ENV:Envelope>
    soapCall.request = msg;
    soapCall.method = "POST";
    soapCall.send();
    ]]>
    </mx:Script>
    <mx:HTTPService
    id="soapCall"
    resultFormat="xml"
    method="post"
    showBusyCursor="true"
    makeObjectsBindable="false"
    useProxy="false"
    requestTimeout="120"
    url="
    http://ldlt7316.wellsfargo.com:8016/hulaweb/FrameworkServletListener"
    request="{msg}">
    </mx:HTTPService>
    <mx:Panel layout="absolute" title="{soapCall.lastResult}"
    id="blog" fontFamily="Courier New">
    <mx:DataGrid x="15" y="10" id="dgPosts" width="482"
    dataProvider="{soapCall.lastResult}" height="108">
    <mx:columns>
    <mx:DataGridColumn headerText="Name"
    dataField="code"/>
    <mx:DataGridColumn headerText="Dates"
    dataField="lastName"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:LinkButton label="Get Data" click="headers()"/>
    <mx:TextArea x="15" y="145" width="782" fontSize="9"
    fontFamily="Verdana" borderStyle="inset"
    htmlText="{soapCall.lastResult}" height="379"/>
    </mx:Panel>
    </mx:Application>

    Would really appreciate some help with this issue. Thanks!

  • Error by invoking BPEL with multiple operations...

    Hi,
    i am trying to invoke BPEL1 with two operations from BPEL2. I am getting the error below. But the wsdl contains this "work" porttype (I appended the WSDL from the BPELConsole after the error message...). The BPEL1 has a pick for each operation...
    ORABPEL-00000 Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is:
    "ORABPEL-08010 Failed get operation definition.
    Failed to get the WSDL operation definition of "work" in portType
    "{http://xmlns.oracle.com/BPELMultOperations}BPELMultOperations".
    Please verify that operation "work" is defined in portType
    "{http://xmlns.oracle.com/BPELMultOperations}BPELMultOperations". at
    com.collaxa.cube.ws.wsdl.WSDLUtils.getOperation(WSDLUtils.java:211) at
    WSDL:
    snip...
    <portType name="BPELMultOperationsCallback">
    <operation name="onResult">
    <input message="tns:BPELMultOperationsResponseMessage"/>
    </operation>
    </portType>
    <portType name="BPELMultOperations">
    <operation name="initiate">
    <input message="tns:BPELMultOperationsRequestMessage"/>
    </operation>
    <operation name="work">
    <input message="tns:BPELMultOperationsRequestMessage"/>
    </operation>
    </portType>
    <binding name="BPELMultOperationsBinding" type="tns:BPELMultOperations">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="initiate">
    <soap:operation style="document" soapAction="initiate"/>
    <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle=""/>
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    <operation name="work">
    <soap:operation style="document" soapAction="work"/>
    <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle=""/>
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>
    <binding name="BPELMultOperationsCallbackBinding" type="tns:BPELMultOperationsCallback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="onResult">
    <soap:operation style="document" soapAction="onResult"/>
    <input>
    <soap:header message="tns:WSARelatesToHeader" part="RelatesTo" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>
    <service name="BPELMultOperations">
    <port name="BPELMultOperationsPort" binding="tns:BPELMultOperationsBinding">
    <soap:address location="http://uranus042.local:7777/orabpel/university/BPELMultOperations/1.0"/>
    </port>
    </service>
    <service name="BPELMultOperationsCallbackService">
    <port name="BPELMultOperationsCallbackPort" binding="tns:BPELMultOperationsCallbackBinding">
    <soap:address location="http://set.by.caller"/>
    </port>
    </service>
    <plnk:partnerLinkType name="BPELMultOperations">
    <plnk:role name="BPELMultOperationsProvider">
    <plnk:portType name="tns:BPELMultOperations"/>
    </plnk:role>
    <plnk:role name="BPELMultOperationsRequester">
    <plnk:portType name="tns:BPELMultOperationsCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    I'm facing the same issue, did you get a resolution to this?
    I'm suspecting that you cant use the same variable for 2 different ports.
    Any help would be appreciated.
    cheers
    James

  • Unable to invoke Webservice with BPEL process

    Hi,
    I wrote a basic WebService in Java and now I want to invoke it with a simple BPEL Process. But it doesn't work. I am using Netbeans 6.5 as IDE and GlassFish V2 as Server.
    Everytime when I try to test my BPEL Process, I got back the following failure message:
    ERROR: Successful execution of Start: NPSProcesstestingApp
    WARNING: (JBIMA0405) Start of service assembly NPSProcesstestingApp succeeded partially; some service units failed to start.
    * Component: sun-http-binding
    ERROR: (SOAPBC_START_1) HTTPBC-E00205: Start failed. java.lang.Exception: LifecycleException: PWC3985: Initialisierung der Protokoll-Behandlungsroutine fehlgeschlagen: java.net.BindException: Address already in use: bind: 8083
    * Component: sun-bpel-engine
    INFO: (JBIMA0409) Lifecycle operation start succeeded for Service Unit NPSProcesstestingApp-NPSProcesstesting.
    I have absolutely no idea why it doesn't work, my webservice is running on localhost at port 8083: http://localhost:8083/numberportingservice, and I deploy it in the following way:
    //NumberPortingService
    NumberPortingServiceImpl npsImpl = new NumberPortingServiceImpl();
    new TestDataGeneratorNPS(npsImpl);
    JaxWsServerFactoryBean sfNPS = new JaxWsServerFactoryBean();
    sfNPS.setServiceClass(NumberPortingService.class);
    sfNPS.setAddress("http://localhost:8083/numberportingservice");
    sfNPS.setServiceBean(npsImpl);
    sfNPS.create();
    That works fine, but it doesn't work with the BPEL process, GlassFish is running on Port 7272 and my webservice on Port 8083, so is the Port 8083 blocked? I checked it, it is not blocked by another application, only my webservice is using it.
    My BPEL Process looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <process
    name="NPStesting"
    targetNamespace="http://enterprise.netbeans.org/bpel/NPSProcesstesting/NPStesting"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
    xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:tns="http://enterprise.netbeans.org/bpel/NPSProcesstesting/NPStesting">
    <import namespace="http://enterprise.netbeans.org/bpel/numberportingserviceWrapper" location="localhost_8083/numberportingserviceWrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://jaxws/" location="localhost_8083/numberportingservice.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <partnerLinks>
    <partnerLink name="PartnerLink1" xmlns:tns="http://enterprise.netbeans.org/bpel/numberportingserviceWrapper" partnerLinkType="tns:NumberPortingServiceLinkType" myRole="NumberPortingServiceRole"/>
    </partnerLinks>
    <variables>
    <variable name="StatecountOut" xmlns:tns="http://jaxws/" messageType="tns:statecountResponse"/>
    <variable name="StatecountIn" xmlns:tns="http://jaxws/" messageType="tns:statecount"/>
    </variables>
    <sequence>
    <receive name="Receive1" createInstance="yes" partnerLink="PartnerLink1" operation="statecount" xmlns:tns="http://jaxws/" portType="tns:NumberPortingService" variable="StatecountIn"/>
    <reply name="Reply1" partnerLink="PartnerLink1" operation="statecount" xmlns:tns="http://jaxws/" portType="tns:NumberPortingService" variable="StatecountOut"/>
    </sequence>
    </process>
    The wsdl of my webservice looks like this:
    <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="NumberPortingServiceService" targetNamespace="http://jaxws/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://jaxws/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://jaxws/" xmlns:tns="http://jaxws/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="address" type="tns:address" />
    <xs:element name="check_porting_possible" type="tns:check_porting_possible" />
    <xs:element name="check_porting_possibleResponse" type="tns:check_porting_possibleResponse" />
    <xs:element name="check_porting_status" type="tns:check_porting_status" />
    <xs:element name="check_porting_statusResponse" type="tns:check_porting_statusResponse" />
    <xs:element name="customer" type="tns:customer" />
    <xs:element name="customers" type="tns:customers" />
    <xs:element name="get_porting_result" type="tns:get_porting_result" />
    <xs:element name="get_porting_resultResponse" type="tns:get_porting_resultResponse" />
    <xs:element name="portingRequest" type="tns:portingRequest" />
    <xs:element name="portingResult" type="tns:portingResult" />
    <xs:element name="schedule_batch_porting" type="tns:schedule_batch_porting" />
    <xs:element name="schedule_batch_portingResponse" type="tns:schedule_batch_portingResponse" />
    <xs:element name="statecount" type="tns:statecount" />
    <xs:element name="statecountResponse" type="tns:statecountResponse" />
    <xs:element name="telephoneNumber" type="tns:telephoneNumber" />
    <xs:complexType name="check_porting_possible">
    <xs:sequence>
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    <xs:element name="providerId" type="xs:long" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="customer">
    <xs:sequence>
    <xs:element minOccurs="0" name="id" type="xs:string" />
    <xs:element minOccurs="0" name="name" type="xs:string" />
    <xs:element name="provider" type="xs:long" />
    <xs:element minOccurs="0" name="address" type="tns:address" />
    <xs:element minOccurs="0" name="telephoneNumber" type="tns:telephoneNumber" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="address">
    <xs:sequence>
    <xs:element minOccurs="0" name="area_code" type="xs:string" />
    <xs:element minOccurs="0" name="city" type="xs:string" />
    <xs:element name="door" type="xs:int" />
    <xs:element name="house" type="xs:int" />
    <xs:element minOccurs="0" name="street" type="xs:string" />
    </xs:sequence>
    <xs:attribute name="id" type="xs:string" />
    </xs:complexType>
    <xs:complexType name="telephoneNumber">
    <xs:sequence>
    <xs:element minOccurs="0" name="area_code" type="xs:string" />
    <xs:element minOccurs="0" name="country_code" type="xs:string" />
    <xs:element minOccurs="0" name="id" type="xs:string" />
    <xs:element minOccurs="0" name="number" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="check_porting_possibleResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:boolean" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="check_porting_status">
    <xs:sequence>
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="check_porting_statusResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:boolean" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="get_porting_result">
    <xs:sequence>
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="get_porting_resultResponse">
    <xs:sequence>
    <xs:element minOccurs="0" name="return" type="tns:portingResult" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="portingResult">
    <xs:sequence>
    <xs:element minOccurs="0" name="comment" type="xs:string" />
    <xs:element name="new_provider" type="xs:long" />
    <xs:element name="success" type="xs:boolean" />
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="schedule_batch_porting">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="portingrequests" type="tns:portingRequest" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="portingRequest">
    <xs:sequence>
    <xs:element name="new_provider" type="xs:long" />
    <xs:element name="porting_date" type="xs:long" />
    <xs:element minOccurs="0" name="customer" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="schedule_batch_portingResponse">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="xs:anyType" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="statecount">
    <xs:sequence />
    </xs:complexType>
    <xs:complexType name="statecountResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="customers">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="customers" nillable="true" type="tns:customer" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="InvalidCustomerFault" type="tns:InvalidCustomerFault" />
    <xs:complexType name="InvalidCustomerFault">
    <xs:sequence />
    </xs:complexType>
    <xs:element name="NotFinishedFault" type="tns:NotFinishedFault" />
    <xs:complexType name="NotFinishedFault">
    <xs:sequence />
    </xs:complexType>
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="statecountResponse">
    <wsdl:part element="tns:statecountResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_statusResponse">
    <wsdl:part element="tns:check_porting_statusResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="schedule_batch_porting">
    <wsdl:part element="tns:schedule_batch_porting" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_possible">
    <wsdl:part element="tns:check_porting_possible" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="get_porting_resultResponse">
    <wsdl:part element="tns:get_porting_resultResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_status">
    <wsdl:part element="tns:check_porting_status" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="statecount">
    <wsdl:part element="tns:statecount" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="NotFinishedFault">
    <wsdl:part element="tns:NotFinishedFault" name="NotFinishedFault">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="get_porting_result">
    <wsdl:part element="tns:get_porting_result" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="check_porting_possibleResponse">
    <wsdl:part element="tns:check_porting_possibleResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="InvalidCustomerFault">
    <wsdl:part element="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="schedule_batch_portingResponse">
    <wsdl:part element="tns:schedule_batch_portingResponse" name="parameters">
    </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="NumberPortingService">
    <wsdl:operation name="check_porting_possible">
    <wsdl:input message="tns:check_porting_possible" name="check_porting_possible">
    </wsdl:input>
    <wsdl:output message="tns:check_porting_possibleResponse" name="check_porting_possibleResponse">
    </wsdl:output>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="check_porting_status">
    <wsdl:input message="tns:check_porting_status" name="check_porting_status">
    </wsdl:input>
    <wsdl:output message="tns:check_porting_statusResponse" name="check_porting_statusResponse">
    </wsdl:output>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="get_porting_result">
    <wsdl:input message="tns:get_porting_result" name="get_porting_result">
    </wsdl:input>
    <wsdl:output message="tns:get_porting_resultResponse" name="get_porting_resultResponse">
    </wsdl:output>
    <wsdl:fault message="tns:NotFinishedFault" name="NotFinishedFault">
    </wsdl:fault>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="schedule_batch_porting">
    <wsdl:input message="tns:schedule_batch_porting" name="schedule_batch_porting">
    </wsdl:input>
    <wsdl:output message="tns:schedule_batch_portingResponse" name="schedule_batch_portingResponse">
    </wsdl:output>
    <wsdl:fault message="tns:InvalidCustomerFault" name="InvalidCustomerFault">
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="statecount">
    <wsdl:input message="tns:statecount" name="statecount">
    </wsdl:input>
    <wsdl:output message="tns:statecountResponse" name="statecountResponse">
    </wsdl:output>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="NumberPortingServiceServiceSoapBinding" type="tns:NumberPortingService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="check_porting_possible">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="check_porting_possible">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="check_porting_possibleResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="check_porting_status">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="check_porting_status">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="check_porting_statusResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="get_porting_result">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="get_porting_result">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="get_porting_resultResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="NotFinishedFault">
    <soap:fault name="NotFinishedFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="schedule_batch_porting">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="schedule_batch_porting">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="schedule_batch_portingResponse">
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="InvalidCustomerFault">
    <soap:fault name="InvalidCustomerFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="statecount">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="statecount">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="statecountResponse">
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="NumberPortingServiceService">
    <wsdl:port binding="tns:NumberPortingServiceServiceSoapBinding" name="NumberPortingServicePort">
    <soap:address location="http://localhost:8083/numberportingservice" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Have anybody an idea why I got this failure I mentioned above when trying to start the BPEL process?
    Please help me :)
    Thanks a lot!!!
    Steve

    Or can you invoke the service from the 'gui' of the deployed webservice in the glassfish as ?
    you need to check if either the service doesnt work or the invoke of the service from bpel is the problem

  • Invoke-sqlcmd with domain user name and password

    I am trying to execute below small SQL script from powershell by passing my domain user name and password..but it is throwing an error login failed for the user.
    Howerver I am able to execute the same query by passing normal user 'non domain' and password. The issue is only when i am trying to connect with domain username.
    Can you please suggest if there is any way to execute below query with domain user..
    Invoke-Sqlcmd
    -query "select name from master.sys.databases"
    -ServerInstance "CM-NCKM-DBTST04\SQL2012" -username "sos\9venk" -password "xxxx"
    Thanks
    Venkat
    venkat

    Hi Venkat,
    Agree with Mike, to connect sql via powershell, you can refer to this article about authentications:
    Connecting to SQL Server through Powershell
    Please try to gather credentials using Get-Credential, and then use New-PSSession -Authentication CredSSP to open the pssession.
    A similar discussion about this issue is for your reference:
    Invoke-SQLCmd with Different Credential
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Invoke reports with Beans

    Hi, every one:
    Can I invoke reports with Beans? How to do it?
    Which JARs must I use? Where can I find materials of it?
    Best regards.
    Leslie Chen

    HI Jorge,
    I'm afraid that out of the box you can only see reports in your default currency. However, if you would like to have mixed currencies in the same report you can try to manipulate the data based on the opty currency.
    To do this, add the opty currency field to the column layout. Then add any other column and use a 'Case'/'When' function for the currency that is NOT your default and have the function multiply/divide the revenue by a constant coefficient that is the exchange rate. Should look something like this:
    case when Opportunity."Opportunity Currency"='USD' then Opportunity."Closed Revenue"*(the exchange rate) else Opportunity."Closed Revenue" end

  • How to invoke JSF With Standard Urls and parameters

    Hi,
    Could some one please help me how to invoke JSF with standard Urls and parameters?
    My requirement is:
    http://localhost:8080/myapp/faces/jsf_page.jsp?trackerID=11&viewPage="products"
    then i want to save the tracker details into database and redirect the user to "products" page.
    Would some one suggest me where can i get some example?

    Hi BalusC,
    It didn't solve my proble.....Your solutions are fantastic for most of the issues. But mine problem is unclear where JSF page tags.
    If possible, Could you please provide me how to invoke the method from JSF page....
    same code works if the user click on command button but my requirement is as soon as the user click on the link from 3rd party website, then he need to come to our web application and invoke the JSF page along with ManagedBean for saving details and redirect to disganted webpage.
    I will provide the following link to 3rd party websites. the URL is :: http://somedomain.com/myApp/Tracker.JSF?trackerID=111
    Could you please provide me the code i need to write in JSF ....just for invoking ManagedBean class...? how i code for page on load call the managedBean for specific method?

  • How to invoke EJB with BPEL?

    How to invoke EJB with BPEL?
    I know there are two ways: WSIF and SOAP.
    But I don't how to do step by step. Please help me.
    Thanks
    Melody

    And I used the method said by soaUser to generate the WSIF binding WSDL file for a Java class.
    Then I put this WSDL file into a BPEL project directory and create a partner link with this.
    But after I invoke this BPEL, a error happen:
    Error while determining signature of method sayHello : The meta information is not consistent.; nested exception is:
         org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate class 'javaws.SayHelloElement'; nested exception is:
         java.lang.ClassNotFoundException: javaws.SayHelloElement
    Even after I put the Java class into the %SOA_HOME%\bpel\system\classes directory, this error still happen.
    How to resolve?
    Thanks,
    Melody

  • Distributing JVM with Application

    Hi,
    Is it possible to distribute a JVM with an application? We do not have install access on the machines that the application will be run on, and therefore want to somehow 'embed' the JVM on the install CD, so that it doesnt have to be installed on the local disk.
    Any suggestions?
    Thanks.

    Sure - we do this all the time. Until JREs are shipped with every new computer, and they do auto-updates (That actually work!), there's no way we will trust an end user to have the proper JRE installed.
    Just copy the JRE to the disk, and launch javaw.exe from there. No need to install as long as you have your classpath set.
    We actually create a little JNI C program that takes care of setting the classpath, picking out the correct class to launch, etc... (this also has the bennefit of having a nice icon for the user to click on, and shows in the task manager with a meaningful name - instead of javaw).
    - K

  • Can we invoke webservice with multiple parts in wsdl?

    Can we invoke webservice with multiple parts in wsdl?
    Thanks

    Yes we can invoke a web service with multiple parts for the input message.
    You just have to assign to the relevant parts of the partner link input variable before invoking.
    Regards,
    Shanmu.

Maybe you are looking for

  • How can I go to a specific date in the future other than by clicking one month at a time?

    Would like to go to a specific date several years from now and see what else I have scheduled (if any) or to see if that day is a holiday or even just to see what day of the week that day falls on. Can I do this in some way other than clicking on the

  • Contacting workgroup server requires run program-activity?

    Dear Technet-group I am currently working on runbooks within our environment. The current setup is that we have several Domain-joined servers and some Workgroup servers. The runbookserver is domain joined. When contacting workgroup servers, I encount

  • New ideas for knowhow

    We are looking forward to hearing your ideas for knowhow. Please note: If your post pertains to using Illustrator itself outside of knowhow functionality, please go to the Illustrator User to User forum. We cannot respond here. Thanks!

  • GPS is V E R Y inacurate!!! E75

    Hello all users of NOKIA GPS! Here I am with my problem... I have brand new NOKIA E75 When I start GPS, navigation shows my position 10-15 meters away from my real place, though I am freezed on one sertain place (without moving) for several minutes. 

  • Organizing MVC

    Hi, I'm just learning MVC and I have few questions. As the class count increases with MVC, how do you usually organize the models, views and controllers in Java packages? I think I'm trying to "tie them together" too much. Also, should I think like t