Get_xplan_msc, How Do I call this method??? , xml, web service, wsdl,dataProvider="{myServiceXML.lastResult.DataSet}"

Result:
<wsdl:definitions targetNamespace="
http://tempuri.org/" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="
http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="
http://tempuri.org/" xmlns:s="
http://www.w3.org/2001/XMLSchema"
xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"
xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="
http://tempuri.org/">
<s:element name="Get_xplan_tpu">
<s:complexType/>
</s:element>
<s:element name="Get_xplan_tpuResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="Get_xplan_tpuResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Get_xplan_msc">
<s:complexType/>
etc....
<?xml version="1.0" encoding="utf-8" ?>
- <DataSet xmlns="
http://tempuri.org/">
+ <xs:schema id="NewDataSet" xmlns="" xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:IsDataSet="true"
msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="xplan_MSC_Planning">
- <xs:complexType>
- <xs:sequence>
<xs:element name="MSC" type="xs:string" minOccurs="0"
/>
<xs:element name="Date" type="xs:dateTime" minOccurs="0"
/>
<xs:element name="Traffic" type="xs:decimal"
minOccurs="0" />
<xs:element name="Radios" type="xs:int" minOccurs="0"
/>
<xs:element name="InstalledCapacity" type="xs:int"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
- <diffgr:diffgram
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
- <NewDataSet xmlns="">
- <xplan_MSC_Planning diffgr:id="xplan_MSC_Planning1"
msdata:rowOrder="0">
<MSC>NYGMSC01</MSC>
<Date>2007-06-24T00:00:00-07:00</Date>
<Traffic>12730.8400</Traffic>
<Radios>676</Radios>
<InstalledCapacity>12342</InstalledCapacity>
</xplan_MSC_Planning>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="#f6f6f6"
backgroundGradientColors="[#f6f6f6, #bbbbbb]"
creationComplete="myServiceXML.send()">
<!-- Script -->
<!-- Our result handler functions get any value returned
from the server -->
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
// you import the event classes for strong typing
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
public function handleResultXML(event:ResultEvent):void {
// the result object is your xml root
lastResultValue.text = "Result:\n" + event.result;
// you get the row nodes of your result object
http://localhost:1343/***/DataService.asmx?op=Get_xplan_msc
// the data of the dataprovider populates the component
http://www.flexcapacitor.com/examples/php/datagrid_xml.php
myDataGrid.dataProvider = event.result.row;
// this function is called when you get an error from the
server
http://localhost:1343/***/DataService.asmx?wsdl
public function handleFault(event:FaultEvent):void {
lastResultValue.text = "Fault: " + event.fault.faultDetail;
//trace(myServiceXML.toXMLString());
// var myService:XML = XML(event.result);
//trace(myService.toXMLString());
]]>
</mx:Script>
<!-- Data Communications -->
<!-- The url is the page you post to -->
<!-- In the request object you add your name and value
pairs -->
<!-- The curly brackets surrounding "username.text" get
the value of username.text -->
<!-- Note: The curly brackets are also used for
databinding where supported -->
<!-- Note: We set the resultFormat to E4X to
automatically convert your return string to an XML object with E4X
support -->
<mx:HTTPService id="myServiceXML" url="
http://localhost:1343/***/DataService.asmx?wsdl"
method="POST" result="handleResultXML(event)"
fault="handleFault(event)"
useProxy="false" resultFormat="e4x">
</mx:HTTPService>
<!-- Layout -->
<mx:Label x="10" y="10" text="Populate DataGrid with XML"
fontSize="20" fontWeight="bold"/>
<mx:HRule x="10" y="49" width="80%"/>
<mx:Button id="submit0" x="10" y="73" label="Get XML"
click="myServiceXML.send()"/>
<mx:Label x="10" y="228" text="Result"/>
<mx:DataGrid id="myDataGrid" x="10" y="114" width="611"
height="106" dataProvider="{myServiceXML.lastResult.DataSet}">
<mx:columns>
<mx:DataGridColumn headerText="xplan_MSC_Planning"
dataField="Traffic"/>
<mx:DataGridColumn headerText="MSC" dataField="MSC"/>
</mx:columns>
</mx:DataGrid>
<mx:TextArea x="10" y="244" width="611" height="400"
id="lastResultValue"/>
</mx:Application>

I haven't been able to see the results from my web service.
I'm seeing this error.
It might be an internal security issue...I'm not sure
why...any help is greatly
appreciated.
David
- <s:element name="Get_xplan_msc">
<s:complexType />
</s:element>
- <s:element name="Get_xplan_mscResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
name="Get_xplan_mscResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
[WSDLError faultString="Element
http://tempuri.org/:Get_xplan_mscResponse
not resolvable" faultCode="WSDL.BadElement" faultDetail="null"]
at mx.rpc.soap::WSDLParser/
http://www.adobe.com/2006/flex/mx/internal::parseMessage()
at mx.rpc.soap::WSDLOperation/parseMessages()
at mx.rpc.soap::Operation/
http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at mx.rpc.soap::Operation/
http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()
at mx.rpc.soap::WebService/::unEnqueueCalls()
at mx.rpc.soap::WebService/
http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.soap::WSDLParser/dispatchEvent()
at mx.rpc.soap::WSDLParser/::parseCompleted()
at mx.rpc.soap::WSDLParser/
http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="#f6f6f6"
backgroundGradientColors="[#f6f6f6, #bbbbbb]"
creationComplete="getXplan_MSC()">
<!-- Script -->
<!-- Our result handler functions get any value returned
from the server -->
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
// you import the event classes for strong typing
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.managers.CursorManager;
import mx.controls.Alert;
default xml namespace = "
http://localhost:1343";
//necessary to access the xml elements easily
[Bindable]private var _xmlResult:XML; //holds the result xml
[Bindable]private var _xlDayData:XMLList; //dataProvider for
the day weather dataGrid
[Bindable]private var _sPlace:String;
/** invokes the web service operation to get the weather */
private function getXplan_MSC():void
CursorManager.setBusyCursor();
WS.Get_xplan_msc.send();
//lastResultValue.text = "Result:\n" +
event.result.Get_xplan_msc;
/** called by the WebService result event. Sets the
dataProviders as necessary */
private function onResult(oEvent:ResultEvent):void
_xmlResult = XML(oEvent.result);
//var xmlResultNode:XML = _xmlResult.Get_xplan_mscResult[0];
// var xmlDetailsNode:XML = xmlResultNode.Details[0];
//outputInfo.text = xmlDetailsNode.toXMLString();
//outputInfo.text = _xlDayData.text();
// outputInfo.text = _xmlResult.toXMLString();
// outputInfo.text = xmlResultNode.MSC.text();// + ", " +
xmlResultNode.StateCode.text();
// _xlDayData =
xmlDetailsNode.toXMLString();//Get_xplan_mscResult[0];
outputInfo.text = _xmlResult.text();
CursorManager.removeBusyCursor();
}//onResult
/** labelFunction for DataGrid. It seems that the namespace
on the xml makes
* using the DataGridColumn dataField not work. At least I
couldn't get it to work. */
public function handleResultXML(event:ResultEvent):void {
// the result object is your xml root
lastResultValue.text = "Result:\n" +
event.result.Get_xplan_msc;
// you get the row nodes of your result object
http://localhost:1343/***/DataService.asmx?op=Get_xplan_msc
// the data of the dataprovider populates the component
http://www.flexcapacitor.com/examples/php/datagrid_xml.php
//myDataGrid.dataProvider = event.result.row[0];
// this function is called when you get an error from the
server
http://localhost:1343/***/DataService.asmx?wsdl
public function handleFault(event:FaultEvent):void {
lastResultValue.text = "Fault: " + event.fault.faultDetail;
lastResultValue.text = "Fault: " + event.fault.faultDetail;
//trace(myServiceXML.toXMLString());
// var myService:XML = XML(event.result);
//trace(myService.toXMLString());
]]>
</mx:Script>
<!-- Data Communications -->
<!-- The url is the page you post to -->
<!-- In the request object you add your name and value
pairs -->
<!-- The curly brackets surrounding "username.text" get
the value of username.text -->
<!-- Note: The curly brackets are also used for
databinding where supported -->
<mx:WebService id="WS" wsdl="
http://localhost:1343/***/DataService.asmx?wsdl">
<mx:operation name="Get_xplan_msc" resultFormat="e4x"
/>
</mx:WebService>
<!-- Layout -->
<mx:Label x="10" y="10" text="Populate Chart with XML"
fontSize="20" fontWeight="bold"/>
<mx:HRule x="10" y="49" width="80%"/>
<mx:Button id="submit0" x="139" y="199" label="Get XML"
click="getXplan_MSC()"/>
<mx:Label x="10" y="228" text="Result"/>
<mx:TextArea x="10" y="244" width="333" height="400"
id="lastResultValue"/>
<mx:TextArea x="377" width="354" height="400"
id="outputInfo" y="244"/>
<!--
<mx:ColumnChart x="243" y="80" id="columnchart1"
width="293" height="115" dataProvider="">
<mx:series>
<mx:ColumnSeries displayName="Date" yField="Date"/>
<mx:ColumnSeries displayName="MSC" yField="MSC"/>
<mx:ColumnSeries displayName="Traffic"
yField="Traffic"/>
<mx:ColumnSeries displayName="Radios"
yField="Radios"/>
</mx:series>
</mx:ColumnChart>
<mx:Legend dataProvider="{columnchart1}" x="108"
y="100"/>
-->
</mx:Application>

Similar Messages

  • Error in calling a method from Web services

    Hai Experts,
                    When i try calling a method in web services from webdyn pro its not being called, i get a error SAOPFAULTCODE: 1 . wat might be the problem? The thing i am working with is tat when a employee try to create a FTR(HCM : Travel), a check has to be done in web services and then allow certain employees to proceed and rest should get a error msg but, i could find all the employees r getting the same error msg . Please resolve this issue.
    Regards and thanks in advance,
    Srija.

    Hello,
    Add the line :
    SET_REPORT_OBJECT_PROPERTY(RAP,REPORT_DESNAME,'test.rdf');
    before
    VRAP:=RUN_REPORT_OBJECT(RAP);
    (Of course, 'test.rdf" is an example, replace it by the name of the reports who want to execute)
    Regards

  • How we can call asynchronous jax-ws web services in OSB 10g r3?

    Hello everybody,
    We're using the Oracle Service BUS 10.3 here, and we'd like to make some calls from business services to web services in some asynchronous way.
    We know Jax-ws provides the callback way and the pooling async way to call it, but as this kind of "operations" are generated in the service consumer stub (and our service consumer rigth now is the OSB itself through the Business Service), we are trying to discover how Oracle Service BUS would use this async feature.
    IMHO, the callback approach would be better, since the response pipeline itself should be trigged when the response is ready.
    Is the OSB 10.3 ready to use async calls with Jax-WS or we should continue using Jax-Rpc with soap over xml to solve this issue?
    Thanks!
    Edited by: lucas.teixeira on 26/05/2009 05:05

    It is important to remember that in our situation here, we'd like to use the Jax-Ws specification. We could use the Jax-RPC and call our service using the JMS transport and the @WLJmsTransport, we know, but this is out of our plans, since the WL implementation of it will enqueue every requisition in just one consumer for the WS.
    Anyone can help us calling async jax-ws services from the OSB ?
    Thanks!

  • How to bind list data to XML Web service request

    How do I bind specific columns in a DataGrid to the Web
    service request? I'm having trouble finding any documentation that
    addresses that specific pattern, i.e. sending a complex list to the
    server via a Flex Web service send() command. I'm fairly new to
    Flex programming and don't know if what I want to do is possible.
    Here what I've been able to do so far.
    1. Using a Web service called a service on the server and
    retrieved a complex list.
    2. Poplulated a DataGrid with the result
    3. The user has selected multiple rows from the DataGrid
    using a checkbox column
    4. The user pressed a button that calls a Web service send().
    This Web service should only send data from only two columns and
    only for those rows the user has checked.
    5. I can loop over the DataGrid and find the selected rows
    and put them in another ArrayCollection called 'selectedRows'.
    The issue is that I don't know how to bind 'selectedRows' to
    the Web service. Right now I'm reading up on "Working with XML" in
    the Programming with ActionScript 3.0 chapter. But I'm just fishing
    here. No bites yet.

    Don't bind. Build the request object programatically, as you
    are doing with your selectedRows AC, and send(myObject) that.
    Tracy

  • How to create Listening Channel for XML/web services repsonse

    Hi , I am new to B2B 11g, wish to ask tht,
    I followed the B2B tutorial by using Generic File and it working fine. However,
    if I wish to receive XML from trading partner thought web server, how should i configure the listening channel, which protocol should I use.
    And may any1 kindly reference me to any link or info?
    Thanks you.

    however..if remote partner going to send me thought web services and not thought folder, should I do anything on my B2B? did i need to specific any extra listening channel?No. No additional configuration is required for receiving files over HTTP. Just ask your TP to post files over one of the below URL's -
    http://hostname:soa_server_port/b2b/httpReceiver or http://hostname:soa_server_port/b2b/transportServlet
    If you just want to test your B2B whether it is properly configured then best way is to have another B2B setup (may be a new domain) which will mock your TP setup. From that B2B setup send message to your B2B over HTTP (on any of above URL's) and see if gets processed successfully.
    If you just want to test whether your B2B is ready to accept messages over HTTP, then access the above URL's through browser and make sure that you see below message -
    "B2B Server is ready to accept HTTP messages from the Trading Partner"
    Regards,
    Anuj

  • How to access HTTP Header from within Web service?

    Hello,
    Is there a way to access HTTP header variables like CONTENT_TYPE, CONTENT_LENGTH from within Web Logic web service.
    I was able to get the HTTP header variable from within Apache AXIS services by calling context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST
    How can i do this from weblogic web service.
    I need this to verify the client SSL_CLIENT_DN
    In access I can get the header as follows.
    HttpServletRequest req = (HttpServletRequest) context
              .getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
    clientID = req.getHeader("SSL_CLIENT_S_DN_Email");
    Thanks
    --Arun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    hi
    the following link may helpful to you
    http://e-docs.bea.com/wls/docs81/webserv/anttasks.html#1111537
    Regards
    Prasanna Yalam

  • How Can I Call a method in iView  ,which is in another iView

    I Have 2 iViews i want to call a method in Iview which is i another iView
    Thanks and Regards
    Prasad.Y

    Hi Prasad,
    first, welcom at SDN.
    Next, let us clarify some wording:
    A <i>PAR</i> is a <i>Portal ARchive</i>. It is a zip in a certain format. It contains a <i>portal application</i>.
    A <i>portal application</i> consists of <i>components</i> and/or <i>services</i>.
    An <i>iView</i> is somehow an "instance" of a <i>component</i>. It is created within the portal. There are <i>no iViews in a PAR</i> (like: "There are no objects in a JAR (but classes).").
    With this in mind, you know that the question does not work, for iViews don't have "methods".
    If you ask how you can call a method of a class belonging to a different component (but within the same portal app), it is no problem at all, each class has access to each other class within the same portal app (in fact, one has to differentiate between public and private part, but we don't want to go so far). To call use a class belonging to (the public part of) a different app, you will have to set the SharingReference within portalapp.xml.
    If that's what you're looking for - great.
    If not, ask again, but far more detailed.
    Hope it helps
    Detlev
    PS: Please consider to reward points for helpful answers. Thanks in advance.

  • How can we call the method of used controller?

    Hi All,
       i created two WDA Applications.( like YWDA1,YWDA2 ) . i am using the component WDA2 in WDA 1.and displaying the one view of WDA2 as popup window in WDA1 on action of one of the input element in the view of WDA1 by using the method l_window_manager->create_window_for_cmp_usage
    I have a button on the view of WDA2 which has appear in the popup window...how can i call the method which has binded to that button....and where should i code that...and i need to assign selected value in the popup window to input elemetn of view  WDA1
    Please help me to resolve this....
    Regards,
    Ravi

    You can not directly call view's event handler from other component.
    create a method in component controller of the second component and in the button click call the component controller method. ( also make the method as interface so that you can call it from other components )
    Now, you can call the interfacecontroller's method
    DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI__VSTX_REBATE_REQ_WD .
      l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_<comp usage name>( ).
      l_ref_INTERFACECONTROLLER->Save_Rr(
        STATUS = '01'                       " Zvstxrrstatus
    save_rr is the method of second component controller

  • How do you call a method from  another class without extending as a parent?

    How do you call a method from another class without extending it as a parent? Is this possible?

    Why don't you just create an instance of the class?
    Car c = new Car();
    c.drive("fast");The drive method is in the car class, but as long as the method is public, you can use it anywhere.
    Is that what you were asking or am I totally misunderstanding your question?
    Jen

  • EL - How do you call a method that requires a parameter

    How do you call a method that requires a parameter
    In scriplet code here is what I am trying to do
    <%= car.getDefaultColor(car.getCarType()) %>
    How do I do this in EL
    Here is my guess (it generates the Exception described below)
    ${car.defaultColor(car.carType)}
    Here is the Exception I am getting:
    javax.servlet.ServletException: <h3>Validation error messages from tag library c</h3>tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${car.defaultColor(car.carType)}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
    Any Ideas?
    P.S. If it matters to you, I am using JSTL 1.0 and the code snippets above are actually within the value attribute of a <c:out value="" /> statement.

    How do you call a method that requires a parameter
    In scriplet code here is what I am trying to do
    <%= car.getDefaultColor(car.getCarType()) %>
    How do I do this in ELYou don't. EL is very strict in method signatures. All get methods must be public Type getProperty(void); And all set methods must be public void setProperty(Type t);
    So you will have to re-work your Bean so it does not need an argument to the get method (getDefaultColor()). Since you are calling another method out of car, you might re-write the getDefaultColor method as such:
      public Object getDefaultColor() {
        CarType ct = this.getCarType();
        //then do other stuff
      }If that isn't suitable, then provide a helper method that is used to set the current car type and then call the getDefaultColor:
      private CarType curCarType;
      public void setCurrentCarType(CarType ct) { curCarType = ct; }
      public Object getDefaultColor() {
        if (curCarType == null) throw new IllegalStateException("CarType must be set before getting color");
        //normal work using curCarType
    <c:set target="${car}" property="currentCarType" value="${car.carType}"/>
    <c:out value="${car.defaultColor}"/>It is better to do as little of the data manipulation (setting up the car type) in the JSP as possible, so the first option is better than the second. Also better then the second would be to set the current car type in a servlet or data access object (or wherever) from which your retreive the car to begin with. Manipulatig it in the JSP itself should be your last resort (to keep as much business logic out of the JSP as possible).
    Here is my guess (it generates the Exception
    described below)
    ${car.defaultColor(car.carType)}
    Here is the Exception I am getting:
    javax.servlet.ServletException: <h3>Validation error
    messages from tag library c</h3>tag = 'out' /
    attribute = 'value': An error occurred while parsing
    custom action attribute "value" with value
    "${car.defaultColor(car.carType)}": Encountered "(",
    expected one of ["}", ".", ">", "gt", "<", "lt",
    "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[",
    "+", "-", "*", "/", "div", "%", "mod", "and", "&&",
    "or", "||"]
    Any Ideas?
    P.S. If it matters to you, I am using JSTL 1.0 and
    the code snippets above are actually within the value
    attribute of a <c:out value="" /> statement.

  • How would I call a method inside a dll?

    How would I call a method inside a dll? Is it even possible in Java? Like in VB you would do something like this: XXX.dll --> XXX.Activate()... I have already loaded the dll like this:
    String xxx = "C:/WINDOWS/system32/xxx.dll";
    System.load(xxx);
    Please help?
    THX

    I've got another question.
    I've gone through the link you posted and a couple others that I found.
    I am able to create an interface using the windows kernel32.dll and go through an example I found.
    But when I try to use a dll that I have from another application, I have problems.
    Here is what I have for the interface.
    public interface IAiCamDeviceControl extends StdCallLibrary {
         public IAiCamDeviceControl INSTANCE=(IAiCamDeviceControl)Native.loadLibrary("D:\\IAiCamDeviceControl.dll",IAiCamDeviceControl.class);   
    //        public long GetVersion( String s );
    //        public long Close();
    }The interface that works looks like this:
    public interface Kernel32 extends StdCallLibrary {
         public Kernel32 INSTANCE=(Kernel32)Native.loadLibrary("Kernel32",Kernel32.class);I thought that the problem might be using the path name for the library, so I copied it into the system32 directory.
    Still get the same error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'D:\IAiCamDeviceControl.dll': The specified module could not be found.
    My main looks like
    public class Main {
        public static void main(String[] args) {
    //          Kernel32 lib=Kernel32.INSTANCE;
    //          Kernel32.SYSTEM_POWER_STATUS batteryStatus=new Kernel32.SYSTEM_POWER_STATUS();
    //          lib.GetSystemPowerStatus(batteryStatus);
    //          System.out.println(batteryStatus);
                IAiCamDeviceControl camDev = IAiCamDeviceControl.INSTANCE;
    }The commented part is from the version that worked.
    All I attempted to do here was just create an instance of the interface.
    Any idea why I can't access the dll?
    The dll is the same one that is used successfully in VB, C#, and C++ demo programs, so I suspect it is a good dll.

  • How can I call a Method in a Transformation Routine

    Hello Experts,
    How can I call a Method in a Transformation Routine ??
    THNXX

    Hi,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19?quicklink=index&overridelayout=true
    It will be help full .
    Regards,

  • How can i call this file path into my bsp-html  to display the images?

    Hi
    I have a file path for an image like c:/test_logo.bmp.
    How can i call this file path into my bsp-html  to display the images?
    moosa

    Try this...
    Can i have  sample code in BSP-HTML to display images?

  • Java.lang.RuntimeException: Caller doesn't have enough permission to call this method

    Hi,
    I am trying to abort a composite instance from SOA BPM Worklist.
    I was able to do the same using weblogic 10.3.6 and SOA 11.1.1.6
    Now, I am using weblogic 10.3.6 (same server) and SOA 11.1.1.7 . I have done the complete FacadeFinderBean and SOATestBean JNDI setup on my servers.
    I am getting the below error now.
    Caused by:  An error occurred while aborting or purging composite instance.
    Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
      java.lang.RuntimeException: Caller doesn't have enough permission to call this method.
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
      at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
      at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1036_WLStub.getCompositeInstances(Unknown Source)
      at oracle.soa.management.internal.ejb.EJBLocatorImpl.getCompositeInstances(EJBLocatorImpl.java:401)
    Caused by: java.lang.RuntimeException: Caller doesn't have enough permission to call this method.
      at oracle.soa.management.internal.ejb.impl.BaseSOABeanImpl.checkSecurityRole(BaseSOABeanImpl.java:55)
      at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.getCompositeInstances(FacadeFinderBeanImpl.java:913)
      at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.getCompositeInstances(FacadeFinderBeanImpl.java:905)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
    Please provide your valuable inputs to solve the issue.
    Thanks and Regards,
    Vijay

    Hi,
    I was able to solve the issue by a workaround >>>
    Set the facade.security.check system property to false in setDomainEnv.sh on SOA domain under java_options
    -Dfacade.security.check=false
    Regards,
    Vijay

  • Exception: java.lang.RuntimeException: Caller doesn't have enough permission to call this method.

    Hi All,
        I am getting the exception "Exception: java.lang.RuntimeException: Caller doesn't have enough permission to call this method.", when i try to execute the code  "Composite MFTComposite = (Composite)locator.lookupComposite(compositeNameRevision); ".Below mentioned the sample code , i am using this code for getting the running instances.
    try{   
              String componentInstanceID = new Long(getInstanceId()).toString();   
              addAuditTrailEntry("Component Instance ID is "+componentInstanceID);   
              Locator locator = LocatorFactory.createLocator();   
              addAuditTrailEntry("Created locator..");   
             String compositeRevision = (String)getVariableData("compositeRevision"); 
    addAuditTrailEntry("compositeRevision..1111"+compositeRevision);   
              String compositeNameRevision = "ManagedFileTransfer/MFT!" + compositeRevision;
              Composite MFTComposite = (Composite)locator.lookupComposite(compositeNameRevision);  
              addAuditTrailEntry("MFT Composite lookup complete..setting filter");   
              CompositeInstanceFilter filter = new CompositeInstanceFilter();   
              filter.setState(CompositeInstance.STATE_RUNNING);  
              filter.setTitle((String) getVariableData("transferName"));  
              List<CompositeInstance> instances = MFTComposite.getInstances(filter);   
              StringBuffer message = new StringBuffer();  
              if ((instances != null) && (instances.size() > 1)) {   
                  addAuditTrailEntry("currently running MFT Instances..");   
                  for (CompositeInstance instance : instances) {   
                    message.append("Instance: " + instance.getId() + " Creation date: " + instance.getCreationDate() + ",");        
                    addAuditTrailEntry("Instance: " + instance.getId() +   
                                 " creation-date: " + instance.getCreationDate());  
              setVariableData("runningInstance", message.toString());    
            } catch (Exception ex) {   
                setVariableData("runningInstance", ex.getMessage());  
                addAuditTrailEntry("Exception: " + ex);   
    Appreaciate your quick response.
    Thank You,
    Vamsi.P

    Hi Vamsi.P,
    Try something like below... Using weblogic admin credentials...
    Hashtable props = new Hashtable();
    props.put(Context.SECURITY_PRINCIPAL,   "fred");
    props.put(Context.SECURITY_CREDENTIALS, "seafood");
    Locator locator = LocatorFactory.createLocator(props);  
    Cheers,
    Vlad

Maybe you are looking for

  • New TDS requirement SAP note 1486147

    Hello, This is regarding the new TDS requirement for which SAP note 1486147 has to be implemented. The problem is that we have implemented the note and also maintained entries in J_1I_SECCO_CIT as well as the entries in J_1IEWT_ACKN. When we do the t

  • Support for authors

    I have published numerous books through traditional publishers and the support that Apple give is far superior to anty support I received from a tradtional publisher.  So please do not complain about Apple support for iBooks Author Books - it empower

  • CS5 and Flash Pro CS5.5 fail to install on OSX 10.7

    I have Lion OS X at an intel core 2 duo macbook air. When I had Snow Leopard, I have installed Adobe CS5 sucessfully, and then removed it because of storage issues. Now I can't install neither CS5, nor Flash CS 5.5. The first one is the dvd image of

  • Why can I not cut and paste a URL?

    I am unable to copy and paste URL's for my college class in my forum section...please tell me how to do this?

  • Change file type icon

    Hi, I am running latest version of Yosemite and am trying to change the icon artwork for my ZIP files. Seeing very strange behavior. My zip files show no artwork in directory view : I previously had iZip installed but deleted it instead to start usin