Highlighted
Trusted Contributor.
Trusted Contributor.
367 views

Error Subscribing/Publishing to MessageTopic in Load Runner using Web Services over nettcp binding

Dear all,

Majucamex ( I have seen that you too have faced a similar issue, can you please post an update on how that is resolved)

I'm working on a WCF based application which is based on event sourcing (Subscribe, Publish, GetTopics...etc) implemented over nettcp 

I have successfully imported the service using multiprotocol Web services and Web HTTP and I can see the methods in the Manage Services tab.

Sample Request created by Importing and filling the input parameters is as below

web_service_call( "StepName=GetTopicsByUsername_104",
        "SOAPMethod=MessageService|NetTcpBinding_IMessageService|GetTopicsByUsername",
        "ResponseParam=response",
        "Service=MessageService",
        "URL=mytestserviceURL",
        "ExpectedResponse=SoapResult",
        "Snapshot=t1475485315.inf",
        BEGIN_ARGUMENTS,
        "username=TestUser",
        END_ARGUMENTS,
        BEGIN_RESULT,
        END_RESULT,
        LAST);

Output:

Action.c(4): web_set_user was successful [MsgId: MMSG-26392]
Action.c(8): Web service call "GetTopicsByUsername_104" started
Action.c(8): Error:InvokeMethod failed: org.xml.sax.SAXParseException; Premature end of file.
Action.c(8): Error:InvokeMethod failure: AXIS engine threw an exception.
Action.c(8): Error:Internal error, please call customer support. Details: Error while retrieving body -- can not parse output parameters
Action.c(8): Error:Web service call "GetTopicsByUsername_104" execution failed
Ending action Action.

 

Any help is deeply appreciated.

0 Likes
3 Replies
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Error Subscribing/Publishing to MessageTopic in Load Runner using Web Services over nettcp bind

Hello,

Could you try to use the .Net Framework to import WSDL?

Regards,

Bingle(LoadRunner R&D)

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Error Subscribing/Publishing to MessageTopic in Load Runner using Web Services over nettcp bind

Hi Bingle,

Thanks a lot for your repsonse.

Can you please elaborate on how to import WSDL using the .Net Framework ?

Do you mean .NET protocol in HP LR VuGen or a multi protocol with Web Services

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Error Subscribing/Publishing to MessageTopic in Load Runner using Web Services over nettcp bind

Hello, 

When you import WSDL, click "Advanced Settings..."  there will be a popup window to let you select "Analyze with toolkit:"  try the ".Net Framework." option.

Regards,

Bingle(LoadRunner R&D)

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.