{"action":"created","issue":{"url":"https://api.github.com/repos/savonrb/savon/issues/764","repository_url":"https://api.github.com/repos/savonrb/savon","labels_url":"https://api.github.com/repos/savonrb/savon/issues/764/labels{/name}","comments_url":"https://api.github.com/repos/savonrb/savon/issues/764/comments","events_url":"https://api.github.com/repos/savonrb/savon/issues/764/events","html_url":"https://github.com/savonrb/savon/issues/764","id":156623658,"number":764,"title":"Can't resolve \"unexpected encoding style\" error.","user":{"login":"thehashrocket","id":342353,"avatar_url":"https://avatars3.githubusercontent.com/u/342353?v=4","gravatar_id":"","url":"https://api.github.com/users/thehashrocket","html_url":"https://github.com/thehashrocket","followers_url":"https://api.github.com/users/thehashrocket/followers","following_url":"https://api.github.com/users/thehashrocket/following{/other_user}","gists_url":"https://api.github.com/users/thehashrocket/gists{/gist_id}","starred_url":"https://api.github.com/users/thehashrocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehashrocket/subscriptions","organizations_url":"https://api.github.com/users/thehashrocket/orgs","repos_url":"https://api.github.com/users/thehashrocket/repos","events_url":"https://api.github.com/users/thehashrocket/events{/privacy}","received_events_url":"https://api.github.com/users/thehashrocket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-24T22:26:03Z","updated_at":"2018-02-19T22:04:09Z","closed_at":null,"author_association":"NONE","body":"I am getting the following error when accessing a WSDL SOAP server:`{:error=>true, :message=>\"Savon::SOAPFault: (env:Client) JAXRPCTIE01: caught exception while handling request: unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual=\"}`\n\nI went to [soapclient.com](http://www.soapclient.com/soapclient?template=%2Fclientform.html&fn=soapform&SoapTemplate=%2FSoapResult.html&SoapWSDL=http%3A%2F%2Fmy.yrc.com%2Fdynamic%2Fnational%2FWebServices%2FYRCZipFinder_V1.wsdl&_ArraySize=2) to figure out what it's looking for. \n\nHere is the [error message I'm receiving](https://gist.github.com/thehashrocket/f8ec4dec4d2b0cb49effd85f0387dc50).\nHere is the code I'm using to connect to the SOAP client:\n\n```\n      my_hash_of_stuff = {\n          zipcode: d_zip,\n          country: country\n      }\n\n      wsdl = 'http://my.yrc.com/dynamic/national/WebServices/YRCZipFinder_V1.wsdl'\n\n      client = Savon.client(wsdl: wsdl,\n                            logger: Rails.logger,\n                            log_level: :debug,\n                            log: true,\n                            pretty_print_xml: true,\n                            env_namespace: :'soap-env',\n                            strip_namespaces: true\n\n      )\n\n\n      response = client.call(:lookup_zip, message: my_hash_of_stuff)\n\n      print response.to_hash\n```\n\nHere's a copy of my [log output ](https://gist.github.com/thehashrocket/48c06559d9bed891124a20809b81ec5a)so you can see what's happening.\n\n[This](https://gist.github.com/thehashrocket/a161ee650efa234b1a349b8ba2a9fa7c) appears to be what the SOAP request should look like if i'm understanding soapclient.com correctly.\n\n[This](https://gist.github.com/thehashrocket/8190a5ab4a0168a2aaf6e54e1916d856) is what I am sending.\n\nI've been fighting with it all day and i'm sure it's probably a combination of my ignorance and something simple that i'm missing. Hopefully you guys might be able to help?\n"},"comment":{"url":"https://api.github.com/repos/savonrb/savon/issues/comments/366813344","html_url":"https://github.com/savonrb/savon/issues/764#issuecomment-366813344","issue_url":"https://api.github.com/repos/savonrb/savon/issues/764","id":366813344,"user":{"login":"stale[bot]","id":26384082,"avatar_url":"https://avatars2.githubusercontent.com/u/26350515?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-02-19T22:04:09Z","updated_at":"2018-02-19T22:04:09Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}