Webservices Question

Hello all,
I am again working with the Angel.com  IVR outbound API (I posted here once before about this). This time I need to get the statuses of call that have been placed. They have a function called getStatus() where you simply pass in an array of call identifies, and they give you have info about them. The problem is that I cannot figure out how to access the information, because they give back an array of functions (some of which contain other functions).
They do have sample code for numerous languages. Here is the java sample, since that is closest to Cold Fusion. Here is their code that does what I want.
        ocss = oc.getStatus(ocl.getToken(), guids.toArray(new String[0]));
         * Print out status information of each call.
        for(int i = 0; i < ocss.length; i++) {
            CallIDentifier cid = ocss[i].getCallIDentifier();
            for(int j = 0; j < ocss[i].getStatusItems().length; j++) {
                OutboundCallStatusItem ocsi = ocss[i].getStatusItems()[j];
                System.out.println(cid.getOutboundCallGUID() + "|\t\t\t|" +
                                   cid.getPhoneNumber() + "|\t\t\t|" +
                                   ocsi.getMessage() + "|\t\t\t|" +
                                   ocsi.getStatus());
The line that confuses me there is
OutboundCallStatusItem ocsi = ocss[i].getStatusItems()[j];
What the hell is that [j] doing after the function call? That syntax simply does not compute for me. Either way I tried to write a similar cold fusion function
     <cffunction name="GetCallStatus" access="public" hint="Find call statuses for an array of call GUID's">
          <cfargument name="outBoundCallGUIDs" type="array" hint="An array of call GUID's" required="yes">
          <cfargument name="token" type="string" hint="Login token for the API" required="yes">
          <cfset var CallInfo = [] />    
          <!--- Send the call object to the webservice --->
          <cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="getStatus" returnvariable="ocss">
               <cfinvokeargument name="token" value="#arguments.Token#"/>
               <cfinvokeargument name="outboundCallGUIDs" value="#arguments.outboundCallGUIDs#"/>
          </cfinvoke>
<cfloop from="0" to="#arraylen(ocss[i].getStatusItems())#" index="j">
<cfset CallInfo[i]["EntireReturnedObject"] = ocss[i]>
<cfset CallInfo[i]["CallGuid"] = cid.getOutboundCallGUID()>
<cfset Callinfo[i]["NumberDialed"] = cid.getPhoneNumber()>
<cfset Callinfo[i]["Object"] = cid>
<cfset Callinfo[i]["ocsi"] = ocss[i].getStatusItems()>
<!---- Does not work, returns "Invalid CFML construct found on line 248 at column 96."
<cfset CallInfo[i]["GetStatusItems"] = ocss[i].getStatusItems()[j]>
---->
<!--- Does not work, returns "1 null <br>The error occurred on line 244."
<cfset CallInfo[i]["GetStatusItems"] = ocss[i].getStatusItems(j)>
---->
<!--- Does nto work, returns "The getMesage method was not found."
<cfset Callinfo[i]["Message"] = ocss[i].getStatusItems().getMesage()>
----->
</cfloop>
          <cfreturn CallInfo>
     </cffunction>
But the last <cfset> line in the loop fails. I have no idea how to reference the getStartTime function which is stored in the getStatusItems function.
I am totally stuck, I have tried a million variation on sytax, and I always get errors stating that the getStartTime method cannot be found, even though it does very clearly exist withing the getStatusItems().
You can see my test page here, to see the data that is getting returned.
http://portal.fpitesters.com/ivr/getCallStatus.cfm
You can see their java sample code here
http://www.socialtext.net/ivrwiki/index.cgi?java_sample_code
Here is their whole library on the API, with other sample code languages listed at the bottom of the page, as well as more information on the getStatus function.
http://www.socialtext.net/ivrwiki/index.cgi?java_sample_code
Any help is appreciated. Thank you.
(FYI when i get all this done I do plan on releasing a CFC with all these functions put together so other CF coders can use Angel.com without having to fight through all the crap I am).

Thank you so much for your reply. I cannot tell you how this problem has been bother me. I did try your code, and while it seems to be much closer, it still wasn't quite right. I used the following code
          <cfloop from="1" to="#arraylen(ocss)#" index="i">
               <cfset cid = ocss[i].getCallIDentifier()>
               <cfloop from="0" to="#arraylen(ocss[i].getStatusItems())#" index="j">
                    <cfset CallInfo[i]["CallGuid"] = cid.getOutboundCallGUID()>
                    <cfset Callinfo[i]["NumberDialed"] = cid.getPhoneNumber()>
                    <cfset CallInfo[i]["GetStatusItems"] = ocss[i].getStatusItems()>
                    <cfset CallInfo[i]["Message"] = CallInfo[i]["GetStatusItems"][j].getMessage()>
               </cfloop>
          </cfloop>
But I get the error
The element at position 0, of dimension 3, of an array object used as part of an expression, cannot be found. <br>The error occurred on line 246.
246 being the
<cfset CallInfo[i]["Message"] = CallInfo[i]["GetStatusItems"][j].getMessage()>
Line. I am sure it is something really simple at this point, just waaay to deep in the forest to see the trees anymore. Again, thank you so much for your help, I truly appreciate it.

Similar Messages

  • WebService Questions?

    I'm using JDev 10.1.3.1 to create my first web service - I was able to successfully consume a web service provided by an external .NET application, and now I'm trying to create a web service to be consumed by that same external application.
    I'm following the instructions in the developer guide (dev guide for forms/4GL developer B25947-01) section 33.4. I created an application module and set it as remoteable / J2EE web service, but now have a couple of questions:
    1. what directory is the WSDL file in and what is its URL? or, do I need to explicitly create the WSDL?
    2. how can I test the web service from outside my application, or, what is an easy way to test the web service (note: I deploy to Tomcat 5.5.9; not using Oracle AS)
    Thanks

    If you'll stand on the web service in the application navigator and look in the structure pane you'll see the WSDL file. Hover over it with the mouse and it will show you where it is.
    Its URL will depend on the parameter you'll put in your deployment profile for the project.
    To test the Web service you can create a Web service proxy and point to the WSDL. Then run the Web service and then run the client.
    See this tutorial:
    http://www.oracle.com/technology/obe/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm

  • HTMLDB 2.0 & AJAX & Webservice question

    Hello all,
    I was thinking about calling from htmldb pl/sql webservice via ajax.
    Anyone attempted such a feat? If so any gotcha's? Could you please give conscise example?
    I'm figuring that you can do a combination of:
    htmldb_*.js calls in conjunction with pl/sql webservice combination to get the job done
    But it's some the specifics on where I'm still fuzzy on how to accomplish this...
    Thanks!

    Mark...
    I have tried to use AJAX in HTMLDB, but have not had much success. Here however is a link to someone's online htmldb.oracle.com site which gives examples of how to incorporate AJAX into HTMLDB:
    http://htmldb.oracle.com/pls/otn/f?p=11933:19:5179961957539300163::NO:RP::#
    I hope this is helpful.

  • Webservices Questions

    1.what are the tools are used to make webservices?
    2.how to create soap request and responce?
    3.how to make a wsdl file?3.a. any tool avilabe in market?
    4.plz tell me about hole life cycle of Webservices?
    5.what are the s/w needed?
    6.SOA?

    SOAIn dutch it short for sexually transmitted desese, but I think in this context it's
    service-oriented architecture.
    http://java.sun.com/reference/soawebservices/

  • Please Help - WebServices Questions

    Hi,
    I have developed one webservice for my client through eclips Rational application Developer. and i am using websphere appserver.
    I have little bit confuse from starting .
    The problem is which is the exact way to develop the webservice. ?
    Is there any different types of webservices available ?
    Is there any passiblity to develop and deploy through java web service into websphere ?
    Which is the Best Way to develop the webservices ?
    Please refer me any Text Book for Web Services for Beginners
    Thanks
    Merlin Roshina

    Read Web Services Essentials (OReilly) by Ethan Cerami.
    U can learn a lot web services in java.net...

  • Webservice question

    I am working at building a login function which will take the
    username and password entered in a form, submit those to a
    webservice for verification, if verified it will push back the
    employeeKey which will then be used to query another webservice for
    permission and role information.
    the first part is working as expected and i am receiving the
    result object, the problem I seem to be having is for the life of
    me I have not been able to strip out 'employee_key' value from the
    object to send back to the server.
    when i look at the object via mx.utils.ObjectUtil.toString i
    get:
    (events::DataManagerResultEvent)#0
    bubbles = false
    cancelable = false
    currentTarget = (managers::DataManager)#1
    eventPhase = 2
    result = (Array)#2
    [0] (Object)#3
    EMPLOYEE_KEY = 531
    target = (managers::DataManager)#1
    type = "getEmployeeKeyResult"
    below is my code:
    private function login():void{
    var AccountName:String=txtAccountName.text;
    var dm:DataManager = DataManager.getDataManager("
    http://localhost/employee/com/employees.cfc?wsdl");
    dm.addEventListener("getEmployeeKeyResult", logInResult);
    dm.makeRemoteCall("getEmployeeKeyFromAccountName",
    "getEmployeeKeyResult", {AccountName:AccountName});
    private function
    logInResult(event:DataManagerResultEvent):void{
    Alert.show(mx.utils.ObjectUtil.toString(event));
    var dm2:DataManager = DataManager.getDataManager("
    http://localhost/employee/com/mapassignedroles.cfc?wsdl");
    dm2.addEventListener("setUserPermissions",
    setUserPermissions);
    dm2.makeRemoteCall("getUserRoleMappings",
    "setUserPermissions", event.result );
    any help would be greatly appreciated
    Text

    Can you try event.result[0].EMPLOYEE_KEY

  • Another webservice question

    Hi I am having a problem with the results being returned from a webservice. I cant seem to query the results, I know this is not a specific Apex problem but I hope someone here can help. Here is the request
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://com.remp.web.sas.dataimport.type">
    <soapenv:Header/>
    <soapenv:Body>
    <com:registerCompound>
    <String_1>#COMPOUNDNAME#</String_1>
    <Double_2>#MOLWEIGHT#</Double_2>
    <String_3>#ALTNAME#</String_3>
    </com:registerCompound>
    </soapenv:Body>
    </soapenv:Envelope>
    It returns something like this;
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <ns1:registerCompoundResponse xmlns:ns1="http://com.remp.web.sas.dataimport.type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <result>11646</result>
    </ns1:registerCompoundResponse>
    </env:Body>
    </env:Envelope>
    I stored the value in a temp table and have been trying to get the query to work with something like
    select id,extractValue(value(t),'/result') "CPD_ID"
    from PJM_XML_TEST c,
    table(xmlsequence(extract(xmltype.createxml(c.xml_clob_type),'//Envelope/Body/registerCompoundResponse/result','xmlns:ns1="http://com.remp.web.sas.dataimport.type"'))) t
    However it returns no rows - IF I remove all the env: and ns1: references from the clob field the query works, I can post the WSDL if needed.

    Hi Jan,
    I've created a structure. It is a (non EJB) bean with 6 private Strings with getters and setters. I put it into a List (Vector to be precise). When I try to test it, using the Web Services Navigator, I get an error.
    The structure really is just a copy from a SAP-ABAP structure. It looks like this:
    Created on Feb 21, 2007
    To change the template for this generated file go to
    Window>Preferences>Java>Code Generation>Code and Comments
    package com.test.struc;
    import java.io.Serializable;
    @author JeschaelL
    To change the template for this generated type comment go to
    Window>Preferences>Java>Code Generation>Code and Comments
    public class Hrwpc_S_KeyObjec implements Serializable {
         public String PlanVersion;                    //plvar
         public String ObjectType;                    //otype
         public String ObjectID;                    //objid
         public String StartDate;                    //begda
         public String EndDate;                     //endda
         public String PlanningStatus;               //istat
         public String HistoricalRecordFlag;     //histo
         public String ObjectAbbreviation;          //short
         public String ObjectName;                    //stext
         public String ExtendedObjectID;          //realo
    @return
         public String getEndDate() {
              return EndDate;
    @return
         public String getExtendedObjectID() {
              return ExtendedObjectID;     }
    @return
         public String getHistoricalRecordFlag() {
              return HistoricalRecordFlag;
    @return
         public String getObjectAbbreviation() {
              return ObjectAbbreviation;
                   -- etcetera --
    Thanks for your time,
    Jeschael

  • General WebServices Question

    hi,
    we have a code in C , that we need to call from Java .
    right now it is called by JNI .
    the API should work in a very very good performance .
    (for billing a telephone call on real time)
    1. could JNI be the answer , performane wise.
    2. is the WSDL the answer ? will it give better performance?
    if so, how can we expose the C code (legacy) as a webservice
    to java ?
    thanks
    Yair

    Maybe look at http://www.cs.fsu.edu/~engelen/soap.html
    and try to invoke a web service generated by this gSoap from Java
    2. is the WSDL the answer ? will it give better performance?i don't know. test it :)
    regards
    Edited by: yarecki on Jan 31, 2008 7:31 PM

  • Opensso webservice question

    Hi,all
    I'm follow this guide http://wikis.sun.com/display/ISE/ISE+OpenSSO+STS step by step,but in the section5 I got this :
    java.lang.NullPointerException at com.samples.GetQuote.processRequest(GetQuote.java:71) at com.samples.GetQuote.doGet(GetQuote.java:232) at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:583) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:92) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    can anybody help? thx

    Hi,
    I guess PeopleSoft is provider in this scenario.
    We can handle this by writing valdiations on request parameters extracted from the request XML message in PeopleCode.
    Then based on the validation violations send the response message for error tarcking.

  • BPC NW vs MS

    Hi All,
    I'm trying to understand the benefits of the BPC NW version aginst the MS but i have some difficulties.
    Besides the fact that surely the maintenance cost are lower, what are the real advantages in terms of functionality and opportunity in the NW solutions?
    I thought that in the NW solution we have the double opportunity for reporting both in BPC and in BEx/BO but reading accros the forum this doesn't seem so true: "share query engine" limits this opportunity, isn't it?
    thanks very much for your contribution.
    DM
    Edited by: D-Mark on Feb 22, 2010 11:18 AM

    thanks for your answers.
    so what i understand is the following:
    ARCHITECTURE
    BPC NW for the users that are running a Netweaver BW solution should be the preferred option in order to manage only a centralized database and application server.
    FUNCTIONALITY
    with the 7.5 version both versions have more or less the same important and fundamental functionality. there should not be particular basic missing functionality as in the previous 7.0 NW that lacks of BPF. (do you know other important lacks?)
    REPORTING
    - BPC reporting: the standard and suggested tool to report on BPC data is the BPC reporting (evdre)
    - BEX reporting: It is technically possible to use BEx reporting in the NW version on the BPC cube, being aware of the lack of SQE. (i really don't know what are the real and most important impacts of this !!)
    - BO reporting:
       - report WEBi: in the MS version the universe is created on the SQL database and in NW on the BPC cube (be carefully of the SQE missing)
       - Xcelsius: this is usable in both versions and data are retrieved thanks to webservices
    question: if we need to analyze together data coming from BPC and other BW area, is  the best way to load all these data to BPC? is there another way?
    feedbacks are appreciated !
    Thanks
    MD

  • Question about implementation of a webservice

    Hi
    I have successful implemented a webservice call in my webdnypro application. But I am not sure if I have done this the right way
    Scenario: I have a view which displays data from a business partner. These data can be accessed over a webservice. The webservice requires a parameter with the id of the bussiness partner.
    My solution: I have implemented a method in the component controller (*comp.java).
    public void getBusinessPartnerInfo( java.lang.String businessPartnerCode )  {
        //@@begin getBusinessPartnerInfo()
           service = new BPService();
           Request_GetBPInfo request = new Request_GetBPInfo(service);
           GetBPInfo getBPInfo = new GetBPInfo(service);
           getBPInfo.setCardCode(businessPartnerCode);
           request.setGetBPInfo(getBPInfo);
           try {
                request.execute();
           } catch(WDWSModelExecuteException ex) {
           wdContext.nodeRequest_GetBPInfo().bind(request);
        //@@end
    and I invoke this method from the wdInit method of the same controller.
    public void wdDoInit()
        //@@begin wdDoInit()
           this.getBusinessPartnerInfo("c1000");
        //@@end
    Therefor the data is available when the view is loaded. But I am asking myself if this is the right way to do that? Wouldn't it be better to call this webservice invocation from the init method of the view?
    Additionally I do not know at the moment how to access the environment of the portal for information. E.g. the business partner code c1000 is hard coded at the moment. I would like to read this code from the environment, e.g. the portal. Over which API can I access data from the portal or better say from the ume (where i can map a field to the business partner code)?
    Thanks for your answers,
    Thierry

    Hi,
    As far as your first question is concerned you can access the controller method from the view linked with the controller as follows:
    wdThis.wdGet<Contoller Name>Controller().yourMethod();
    I have no idea that you can store generic information such as BP code specific to a user in EP. Lets see.
    thanks & regards,
    Manoj

  • Question about using OC4J in a webservice test

    Hi,
    I'm new in Java,and Web service world. In my company we have 9i Oracle Database with a large application developed in Forms, now they are creating a new corporate website and want to communicate with DB via Webservices.
    We want to do a 'Concept test' with a PL/SQL procedure to be deployed as a webservice to OC4J in a personal computer, then try to access this webservice from the internet corporate website).
    Our questions are.
    1.- Are We in a right path?
    2.- OC4J embbed version is good enough to working as a web-J2EE server and run this test.
    3.- What kind of configuration we have to keep in mind to make our webservice 'visible' from the internet.
    4.- Is there any white-paper you recommend..
    Thanks!
    John.

    2000 concurrent sessions...now that would require quite a big application server farm if you are using forms for this project. As you have experience in PL/SQL and none in Java/ADF the decision shouldn't be that hard. Java is an Object Oriented language whereas PL/SQL is procedural which means quite different ways of doing things when you e.g. want to write APIs. If you don't have any expierience in any Object Oriented language starting off with a quite big project in java might not be a good idea. This doesn't mean that you shouldn't learn java at all, but when learning a new language you usually start with a "Hello World" application, and not with writing a operating system with that language.
    APEX on the other hand is plain PL/SQL and not just for small websites; a good sample is the asktom site; it is written in APEX and I guess it has a fair amount of traffic.
    So APEX has some benefits
    - you have already knowledge in house
    - you are familiar with the language
    - APEX doesn't require an application server license; you can use oracle XE and if you don't want to expose the database to the www use a plain apache server to handle the http request
    So if it were me, APEX would be the way to go.
    cheers

  • General question about webservices

    I hava a file "Test.java" (which attempts to test a webservice) and a XML-File.
    I compiled the Test-class successfully and now I'm wondering what are the next
    steps to be able to send a request to the webservice and get a response.
    I know that I will need to install Apache Axis (?). But I have no idea how to go on.
    What is with the Test.class? I'll have to pack it somehow, I suppose.
    Sorry if my question's too stupid. I'm a beginner with Java and all those web- and xml-things are very confusing. :o(
    The Test.java:
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.net.URL;
    import java.security.Security;
    import org.apache.axis.Constants;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.InputSource;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    import javax.xml.rpc.ParameterMode;
    public class Test
    public static void main(String [] args) throws Exception {
         try {
              runIt();
         } catch(Exception e) {
              e.printStackTrace();
    private static void runIt() throws Exception {
         System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
         Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
         System.setProperty("javax.net.ssl.trustStore","C:/java/olliclientkeystore");
         String ret = "";
         String endpoint = "https://whatever";
         Service service;
         Call call;
         for (int i = 0; i <= 8; i++) {
         switch(i) {
              case 0:     System.out.println("Case 0");
              service = new Service();
              call = (Call) service.createCall();
              call.setTargetEndpointAddress(new URL(endpoint));
              call.setOperationName("abc");
              call.addParameter("x1", Constants.XSD_STRING, ParameterMode.IN);
              call.addParameter("x2", Constants.XSD_STRING, ParameterMode.IN);
              call.addParameter("x3", Constants.XSD_STRING, ParameterMode.IN);
              call.addParameter("x4", Constants.XSD_INT, ParameterMode.IN);
              call.setReturnType( XMLType.XSD_STRING );
              call.setUsername("xyz");
              call.setPassword("zyx");
              ret = (String) call.invoke(new Object[] {"abc",null,null, new int[] {1,3,5}});
              break;
              case 1:     System.out.println("Case 1");
              case 8:     System.out.println("Case 8");
                        service = new Service();
                        call = (Call) service.createCall();
                        call.setTargetEndpointAddress(new URL(endpoint));
                        call.setOperationName("def");
                        call.setReturnType( XMLType.XSD_STRING );
                        call.setUsername("xyz");
                        call.setPassword("zyx");
                        ret = (String) call.invoke(new Object[] {});
                        break;
         //System.out.println(ret);
         File f = new File("C:\\AnyName"+i+".xml");
         if (f.exists() && f.canWrite()) {
              f.delete();
         try {
              FileWriter write = new FileWriter("C:\\Anyname"+i+".xml",true);
              write.write(ret);
              write.close();
         } catch(IOException e) {
              e.printStackTrace();
         try {
              XMLReader reader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
              InputSource in = null;
              try {
                   in = new InputSource(new FileInputStream(f));
              } catch(FileNotFoundException e) {
                   System.out.println("Datei nicht gefunden oder Zugriff verweigert: "+f.toString());
              Parser parser = new Parser();
              ContentHandler xmlImp = parser;
              reader.setContentHandler(xmlImp);
              reader.parse(in);
         } catch(Exception e) {
              System.out.println("Fehler: ");
              e.printStackTrace();
    }Can anybody please give me a hint? (or a link to a very good tutorial which
    is understandable for a beginner like me)
    Thanks in advance.

    When I execute the class I get the following message:
    Case 0
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.net.UnknownHostException: ollilap.hsh-berlin.com
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.net.UnknownHostException: ollilap.hsh-berlin.com
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
         at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
         at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:181)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:397)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:135)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
         at org.apache.axis.client.Call.invoke(Call.java:2737)
         at org.apache.axis.client.Call.invoke(Call.java:2413)
         at org.apache.axis.client.Call.invoke(Call.java:2336)
         at org.apache.axis.client.Call.invoke(Call.java:1793)
         at Test.Test.runIt(Test.java:69)
         at Test.Test.main(Test.java:39)
         {http://xml.apache.org/axis/}hostname:Dell1
    java.net.UnknownHostException: ollilap.hsh-berlin.com
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
         at org.apache.axis.client.Call.invoke(Call.java:2737)
         at org.apache.axis.client.Call.invoke(Call.java:2413)
         at org.apache.axis.client.Call.invoke(Call.java:2336)
         at org.apache.axis.client.Call.invoke(Call.java:1793)
         at Test.Test.runIt(Test.java:69)
         at Test.Test.main(Test.java:39)
    Caused by: java.net.UnknownHostException: ollilap.hsh-berlin.com
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
         at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
         at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:181)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:397)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:135)
         ... 11 moreI execute it out of Eclipse. I think that that must be wrong (?).
    I created a *.war-file and tried to deploy it with Java Web Sevices Developer Pack
    DeployTool. But that doesn't work.

  • Reframing my Question for RESTful 3rd Party WebService

    My last posted question did not produce any feedback for what I was looking for, so I'm trying this again.
    I have a Driver entity, and an gpsVehicleData entity. Drivers can have one gpsVehicleData (relationship)
    In a grid screen I use; for THE most basic understanding I can get, I have one field I need updated from my 3rd party webservice. We'll call it gpsVehicleData.MotionStatus, and I need to use Driver.DriverID in the service to find his MotionStatus.
    This is the example connection snippet I was given by the vendor.
    Dim responseData As String = ""
    Dim uri As String = "http://ws.samplegps.com/DriverWebService.svc/drivers/"
    Dim request As System.Net.HttpWebRequest = Net.HttpWebRequest.Create(uri)
    request.Method = "GET"
    Dim companyLoginId As String = "12345"
    Dim username As String = "John"
    Dim password As String = "Doe4321"
    Dim auth As String = companyLoginId + "|" + username + ":" + password
    Dim authHeader As String = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(auth))
    request.Headers("Authorization") = authHeader
    Try
    Dim httpWebResponse As System.Net.HttpWebResponse = request.GetResponse()
    If httpWebResponse.StatusCode = Net.HttpStatusCode.OK Then
    Dim responseStream As IO.StreamReader = New IO.StreamReader(httpWebResponse.GetResponseStream())
    responseData = responseStream.ReadToEnd()
    Console.WriteLine(responseData)
    Console.ReadKey()
    End If
    Catch ex As Exception
    responseData = "An error occured: " & ex.Message
    Console.WriteLine(responseData)
    Console.ReadKey()
    Great. So this works when I run in it's own solution, and it pops up a console window and shows all data for each of my drivers. My problem is, I cannot find an example I can follow to update the Motion property in EACH ROW (each driver of my Screen with
    this snippet.
    (A button function seems appropriate instead of Validate method, but honestly as long as it works I don't care.
    This is the closest I have found but I'm not using Soap.
    LightSwitch - Consuming Web Services
    This is too, but much different than the first example!
    Calling Web Services to Validate Data in Visual Studio LightSwitch
    One example has something and not the other, and the other example has this but not that. Very frustrating for a new person!
    I do not need to dive into RIA right now which has been suggested before.
    I know I am not very knowledgeable in VB, but I need to use something applicable to my environment I can make more sense of. Thanks in advance

    This is the closest I have found but I'm not using Soap.
    LightSwitch - Consuming Web Services
    From your description, you can consider using method above, as I know, this way is available/convenient for your situation.

  • Question about webservice and wsdl file

    Hi All.
    I have this scenario , the customer wants to send some information as they happen
    The customer wants to use a web service to our database(JDBC)
    I understand that from this requirement , I have to develop the Object in PI , and create the wsdl file to send it to the customer , this wsdl file will have the URL and other information for the consuming of the webservice.
    Now the weired thing is the customer insists that we should use their wsdl file , I am confused about this , I understand that when the customer send their wsdl file , it is because they will act as a receiver to our request , right ?
    but if they want to act as sender , then the wsdl file should be sent from PI side based on the configuration.
    My question is it possible to create a scenario based on the cunstomer wsdl file eventhough the customer is the sender .
    if so what and how the URL will be.
    Thanks.

    Malu Mader wrote:
    > Now the weired thing is the customer insists that we should use their wsdl file , I am confused about this , I understand that when the customer send their wsdl file , it is because they will act as a receiver to our request , right ?
    > but if they want to act as sender , then the wsdl file should be sent from PI side based on the configuration.
    refer Walkthrough - SOAP  XI  RFC/BAPI
    your URL will be;
    The inbound address for SOAP messages is: http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
    Under party:service:channel enter the party name, the service name, and the name of the communication channel. If no party has been created, enter the following: channel=:service:channel

Maybe you are looking for

  • Need help with different link styles on same page

    Hello, I'm using Dreamweaver CS4 on a PC. I have searched through a lot of posts over the last couple of days, I've tried the projectseven.com tutorial, google'd, etc. but still can't figure it out..... All I want to do is apply a different link colo

  • Mighty Mouse Scrolling *after* 10.4.6 update

    I updated to 10.4.6 in between repairing permissions (I do like how repairing permissions no longer displays already repaired permissions). I've noticed that I can no longer scroll down with my Mighty Mouse. I can scroll up and sideways though. Has a

  • Iphone to hdmi cord?

    Anyone know if there's a cord with which i can connect my iphone 4s and/or ipad 1 to an HDMI in on my TV?  Will it allow both sound and video?  Thanks in advance for your help!

  • Moving from Gmail to MobileMe/.Mac, in relation to an iTunes Store Account

    I'm moving from Gmail to MobileMe since I got my iPhone, and as with every email change, a whole mess of online accounts follow. The process is simple enough for third parties like social networks, but Apple wants my life to super convenient and easy

  • User Interface Annoyance - Label

    I have colour-labelled my desktop disk icon many times since I have been using my iBook, most commonly when I'm using a picture as my desktop background. I noticed a few days ago, however, that the labelling menu has been 'greyed out', and it is not