Trouble with Wrapped Params (Quickbooks WebConnect WSDL)
See original GitHub issueI 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:
- Created 5 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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”!
This issue was closed because it has been inactive for 14 days since being marked as stale.