Skip to content

Bugfix/header values composing - #381

Merged
eed3si9n merged 5 commits into
eed3si9n:masterfrom
coutoPL:bugfix/header_values_composing
Jul 20, 2016
Merged

Bugfix/header values composing#381
eed3si9n merged 5 commits into
eed3si9n:masterfrom
coutoPL:bugfix/header_values_composing

Conversation

@coutoPL

@coutoPL coutoPL commented Jul 20, 2016

Copy link
Copy Markdown
Contributor

Ref #366

Soap envelope should be:

<soap12:Envelope>
    <soap12:Header>
      <sessionId>session</sessionId>
      <correlationId>10001</correlationId>
    </soap12:Header>
    <soap12:Body>
      <username>User</username>
    </soap12:Body>
</soap12:Envelope>

not:

<soap12:Envelope>
    <soap12:Header>
      session10001
    </soap12:Header>
    <soap12:Body>
      User
    </soap12:Body>
</soap12:Envelope>

for tested WSDLs (implicit_header_example.wsdl, explicit_header_example.wsdl and implicit_header_multiple_part_header.wsdl)

|val service = new implicitheader.UserBindings with scalaxb.SoapClients with scalaxb.HttpClients {
| override def httpClient = new HttpClient {
| override def request(in: String, address: java.net.URI, headers: Map[String, String]): String = {
| println("!!!" + in)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!!! :)

@eed3si9n

Copy link
Copy Markdown
Owner

Thanks for following up with a quick fix!

@eed3si9n

Copy link
Copy Markdown
Owner

I don't know how Apache CXF encodes implicit headers, but if it's supported, it might be worth running the server and hitting it with scalaxb like here:

@coutoPL

coutoPL commented Jul 20, 2016

Copy link
Copy Markdown
Contributor Author

I've tried to force apache CXF to generate wsdl with implicit headers and unfortunately I couldn't. Google says nothing about using implicit headers by CXF, so I guess it's impossible to achieve.

@eed3si9n

Copy link
Copy Markdown
Owner

I'm going to restart Travis to see what happens. I think I've seen it fail like that before.

@eed3si9n
eed3si9n merged commit 40a4249 into eed3si9n:master Jul 20, 2016
@coutoPL
coutoPL deleted the bugfix/header_values_composing branch November 9, 2016 21:39
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

Successfully merging this pull request may close these issues.

2 participants