Solved

Problem in calling web service wsdl/soap

Posted on 2011-03-18
3
679 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now