Solved

me.Invoke does not return any data

Posted on 2008-10-16
16
1,108 Views
Last Modified: 2013-11-18
I am using the following piece of code to invoke a web servive:

Dim results() As Object = Me.Invoke("OpGet", New Object() {Remote_Instance_ID})

but the results() object is returning as a null object.

I have tested whether the web service is working correctly using WireShark and have seen that the correct XML is being sent and received. But for some reason it is not being populated into this object.

I am completely stumped by this, please could someone help. I have a separate case open which is the same problem but poorly described, I will close this now.
0
Comment
Question by:phil192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
16 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22758139
What happens if you create an instance of a web service, and call the web method directly?
0
 

Author Comment

by:phil192
ID: 22759040
Hi, thanks for your comment.

Yes, my first approach was to use the 'Add Web Reference' functionality in Visual Studio 2008 using the WSDL attached below.

Then I attempted to use the web service using the following code:

        Dim RemedyWS As New remedydev01.MMM_ESS_EquipmentSupportTicketService()
        Dim RemedyResponse As New remedydev01.TicketType()
        RemedyResponse = RemedyWS.OpGet(TextBox1.Text)

If an invalid parameter is used in the OpGet function then it returns an error from the webService, but if a valid parameter is used then a null object is returned.

It was in my debugging that I found that the root problem went back to the me.invoke call.

WSDL.txt
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22762942
What kind of web service is this, and is it under your control?  Does the web service have a test page?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:phil192
ID: 22767381
It's a web service that is configurable and comes with the BMC Remedy server.  It's API is that of Apache AXIS. I don't know any more than that I'm afraid but if there are specific questions that I need to answer to get to the bottom of this then I'm sure I can find out.

Many thanks, Phil
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22767405
Can you show me the XML that is returned for that web method call?
0
 

Author Comment

by:phil192
ID: 22767718
Attached is a sample of XML data returned.
Returned-SOAP-Data-2.txt
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22767934
In that response, Remote_Instance_ID is blank:

<Remote_Instance_ID/>
0
 

Author Comment

by:phil192
ID: 22768069
Yes it is, is that a problem?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22768093
That would be my first inclination.  You might want to find out if there is a way to get a response that has a valid Remote_Instance_ID (that is not blank).
0
 

Author Comment

by:phil192
ID: 22768549
I will try to get that changed in the web service, although I feel it is unlikely to be the issue because of the fact that the Invoke function returns a null object. Would it not just return an object with a null value for the Remote_Instance_ID field?
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 22768930
That is an assumption that you need to test.  You would have to determine what the arguments are to the web method that would give you a non-blank Remote_Instance_ID.
0
 

Author Comment

by:phil192
ID: 22769558
Ok I understand. I'll get the web service changed and test it further. It may take a few days but I'll let you know when I've done it.

Thanks for your help so far.

Phil
0
 

Author Comment

by:phil192
ID: 22904051
Sorry for the delay, unfortunately the web service is not something I have direct control over so I'm still waiting for this to be completed. Thanks for your patience. Phil
0
 

Author Closing Comment

by:phil192
ID: 31506806
Thanks for your help TheLearnedOne, I'm going to close this question now as its been a long time since first opening it. If the problem still exists then I will reraise it as an issue.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 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