Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 415 RESPONSE #211

Open
ashrumoh opened this issue Jul 8, 2021 · 1 comment
Open

HTTP 415 RESPONSE #211

ashrumoh opened this issue Jul 8, 2021 · 1 comment

Comments

@ashrumoh
Copy link

ashrumoh commented Jul 8, 2021

Hello All,

I am new to GoWSDL.
I am using GoWSDL to generate SOAP client from WSDL. Go Code got generated successfully from WSDL without any issues. However when I tried to call one the SOAP method I do receive HTTP status 415. Here's the step I followed.

gowsdl myservice.wsdl // to generate code

In main.go I added following steps;

client := soap.NewClient(
"http://////.svc",
soap.WithTimeout(time.Second*5),
soap.WithBasicAuth("xxxx", "xxxx"),
)

 service := ede.NewIXyz(client)

  gOrder := ede.GetOrder{}
  gOrder.OID=1234

  orderDeatils,err := service.GetOrder(&gOrder)

Let me know If I missed any additional steps here? Not sure why I am receiving HTTP 415 for this request .

Thanks in advance Asru

@steveyu1990
Copy link

Have you solved the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants