Error: Style on header does not match expected style Rpc
See original GitHub issueI’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:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top 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 >
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 Free
Top 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

@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.
@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