-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix input/output for
style="rpc"
operations (#119)
- Loading branch information
1 parent
3bf2502
commit 835f50e
Showing
3 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0"?> | ||
<definitions | ||
xmlns="http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
name="ExampleService" | ||
targetNamespace="http://www.example.com" | ||
xmlns:tns="http://www.example.com" | ||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> | ||
<message name="ExampleOperationRequest"> | ||
<part name="ExampleField" type="xs:string"/> | ||
</message> | ||
<message name="ExampleOperationResponse"> | ||
<part name="ExampleField" type="xs:string"/> | ||
</message> | ||
<portType name="ExamplePortType"> | ||
<operation name="ExampleOperation"> | ||
<input message="tns:ExampleOperationRequest"/> | ||
<output message="tns:ExampleOperationResponse"/> | ||
</operation> | ||
</portType> | ||
<binding name="ExampleBinding" type="tns:ExamplePortType"> | ||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> | ||
<operation name="ExampleOperation"> | ||
<soap:operation soapAction="urn:ExampleInterface-ExamplePortType#ExampleOperation" style="rpc"/> | ||
<input> | ||
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ExampleInterface-ExamplePortType"/> | ||
</input> | ||
<output> | ||
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ExampleInterface-ExamplePortType"/> | ||
</output> | ||
</operation> | ||
</binding> | ||
<service name="ExampleService"> | ||
<port name="ExamplePort" binding="tns:ExampleBinding"> | ||
<soap:address location="http://example.com/ExampleService.dll/soap/ExamplePortType"/> | ||
</port> | ||
</service> | ||
</definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
require "spec_helper" | ||
|
||
describe Wasabi::Document do | ||
context "with: rpc_operation.wsdl" do | ||
subject { Wasabi::Document.new(fixture(:rpc_operation).read) } | ||
|
||
describe "#operations" do | ||
subject { super().operations } | ||
|
||
it do | ||
should include( | ||
{ | ||
example_operation: { | ||
action: "urn:ExampleInterface-ExamplePortType#ExampleOperation", | ||
input: "ExampleOperation", | ||
output: "ExampleOperation", | ||
namespace_identifier: "tns" | ||
} | ||
} | ||
) | ||
end | ||
end | ||
end | ||
end |