Solved

Problem in calling web service wsdl/soap

Posted on 2011-03-18
3
682 Views
Last Modified: 2012-05-11
Hi All,

My app is completely dependent on internet...

i use WSDL/SOAP service config

I call few services in app start up


It works fine if internet connection is available on page startup, if net connection is not availble at startup of app i am trying to call same services by placing timer but  at some point endPointUrl becomes null.....

 

In the page initalisation i.e whil calling web services, the  parameters such has

_serviceControl.service ="";

_serviceControl.port ="";

wsdl="";

model_internal::initialize(); //gets initalised properly ...

 

----All this works fine when internet connection is there i.e it get initalised properly

but if internet connection is not there at the application startup or any mxml  page  life cycle a problem occurs...

i.e i do check for internet connection in my application startup and

if (internet available)

      call a method where i call the services

      i.e getSearchEngineForPageResult.token = lawPadCommunicationServicesPort.getSearchEngineForPage(RefTxtInput, 15, counter);

else

   set a timer to recheck the connection, once available i wil call  the services

 

But at this point i am not able to make a request bec

all the values becomes null if initally internet is not there

_serviceControl.service ="";

_serviceControl.port ="";

wsdl="";

       and also

endPointUrl = null //how to overcome this      

 

<fx:Declarations>
        <s:CallResponder id="getSearchEngineForPageResult"/>
        <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="lawPadCommunicationServicesPort"
                                                                          result="lawPadCommunicationServicesPort_resultHandler(event)"      
                                                                          showBusyCursor="true"/>
    </fx:Declarations>

 

where i am going wrong pls let me know....
0
Comment
Question by:SreeramojuPradeep
  • 2
3 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 35166253
Are you setting destination URL or service name?
0
 

Author Comment

by:SreeramojuPradeep
ID: 35196167
we are setting all these(WSDL URI, service name, service package, Datatype package) to connect to the server.

 wsdl data services
0
 
LVL 29

Accepted Solution

by:
dgofman earned 250 total points
ID: 35199998
Its possible get your WSDL definition outside your network. May be for testing you can upload your ear or war to your public webhost.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question