Link to home
Start Free TrialLog in
Avatar of SreeramojuPradeep
SreeramojuPradeepFlag for India

asked on

Problem in calling web service wsdl/soap

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....
Avatar of dgofman
dgofman
Flag of United States of America image

Are you setting destination URL or service name?
Avatar of SreeramojuPradeep

ASKER

we are setting all these(WSDL URI, service name, service package, Datatype package) to connect to the server.

 User generated image
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial