question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trouble with Wrapped Params (Quickbooks WebConnect WSDL)

See original GitHub issue

I used SVCUTIL to generate code for the Quickbooks WebConnect WSDL found here: https://test.developer.intuit.com/QBWC/TroubleshootWebServiceFS/Service.asmx?wsdl

The resulting C# code is in the attached file [QBWC.zip] https://github.com/DigDes/SoapCore/files/2484661/QBWC.zip) but I noticed that the requests and responses are wrapped. As a result, my implementation always gets null as a the param:

       public serverVersionResponse serverVersion(serverVersionRequest request)
        {
            _log.LogInformation($"serverVersion Request: {JsonConvert.SerializeObject(request)}");
            return new serverVersionResponse(new serverVersionResponseBody("Test"));
        }

Am I using the correct/recommended WSDL-to-C# generator? Is SoapCore able to handle wrapped request/response? Or do I need to manually manipulate the generated file with my own DTO’s to make this work?

Example Request Body:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <authenticate xmlns="http://developer.intuit.com/">
      <strUserName>iqbal1</strUserName>
      <strPassword>Test</strPassword>
    </authenticate>
  </soap:Body>
</soap:Envelope>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
JaronrHcommented, Nov 10, 2018

I ended up writing my own service contract in a style that matched the SoapCore example and that fixed everything. Pain that you can’t use the generated code but glad to find some sort of “solution”!

0reactions
github-actions[bot]commented, Aug 11, 2021

This issue was closed because it has been inactive for 14 days since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quickbook web connector WCF https ssl and cert issue - Help
I have created a wcf servicenamespace QBDesktopSyncServiceSystem.CodeDom.Compiler.GeneratedCodeAttribute("wsdl" ...
Read more >
QuickBooks Web Connector Programmer's Guide
This Programmer's Guide describes the integration of QuickBooks and QuickBooks POS with web services via the QuickBooks Web Connector (QBWC) application.
Read more >
Fix common Web Connector errors in QuickBooks Desktop
Learn how to fix Web Connector errors for QuickBooks Desktop.Web Connector lets you connect third-party applications to QuickBooks Desktop.
Read more >
Authentication issue using QuickBooks Web Connector
java - Authentication issue using QuickBooks Web Connector: Object reference not set to an instance of an object - Stack Overflow.
Read more >
QuickBooks Web Connector Programmer`s Guide | Manualzz
If your web service returns an empty string or any other string that is NOT nvu or none, or busy, that string will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found