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.

Error: Style on header does not match expected style Rpc

See original GitHub issue

I’m trying to generate a WCF reference to an internal SOAP service into a .NET 4.6 project. I get this error whenever I try to import the WSDL:

Importing web service metadata ...
Number of services found: 1
Restoring NuGet packages ...
Building solution ...
Scaffolding service reference code ...

Error: Style Document on header id does not match expected style Rpc.
Error: Style Document on header version does not match expected style Rpc. 
Error: Style Document on header type does not match expected style Rpc.
Error: Style Document on header mode_envoi does not match expected style Rpc.
Error: Style Document on header mode_production does not match expected style Rpc.
Error: Style Document on header format does not match expected style Rpc.
Error: Style Document on header piecesJointes does not match expected style Rpc.
Error: An unknown error occurred while invoking the service metadata component.
Failed to generate service reference.

I stumbled upon this thread and since we mostly run Java apps, it doesn’t seem unlikely that there’s an incompatibility somewhere. Nonetheless, I’m wondering if it should be considered or not as a bug here.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mlacouturecommented, Nov 14, 2017

@outadoc, thank you very much for the updated wsdl files.

I just verified and confirmed we have a fix for this issue, it will be available in Visual Studio 2017 15.6 Preview 1 which is to be release in less than a month from now.

1reaction
hongdaicommented, Oct 3, 2017

@outadoc Sorry to hear that you are running into an issue! We will try to repro locally and identify the root cause.

Thanks, Hong Dai

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error generating c# proxy with svcutil
Svcutil returns following errors: Error: Style Document on header authHeader does not match expected style Rpc. For every method in service ...
Read more >
4. RPC-Style Services - Java and SOAP [Book]
No new XML or data encoding styles are needed for RPC. Let's take a look at what's required to represent an RPC method...
Read more >
Problem with xml schema types in wsdl - webMethods
When generating a web services connector in webMethods, I'm running into some issues when the wsdl contains simple types other than strings.
Read more >
[Issues with RPC / Encoded] Web Services - webMethods
I defined a WebService in IS 6.5 SP2 with a input field with type = string and a constraint content type = date....
Read more >
Troubleshooting the WSDL service description generator - FAQ
If the WSDL binding style is RPC/Encoded, make sure that all <wsdl:part> uses @type and references an actual schema data type such as...
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