Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0ea201cb
Commit
0ea201cb
authored
Jul 20, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Set default channel envelope and addressing versions.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
82306e84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
channel.c
dlls/webservices/channel.c
+6
-0
channel.c
dlls/webservices/tests/channel.c
+26
-0
No files found.
dlls/webservices/channel.c
View file @
0ea201cb
...
...
@@ -193,12 +193,18 @@ static HRESULT create_channel( WS_CHANNEL_TYPE type, WS_CHANNEL_BINDING binding,
{
struct
channel
*
channel
;
ULONG
i
,
msg_size
=
65536
;
WS_ENVELOPE_VERSION
env_version
=
WS_ENVELOPE_VERSION_SOAP_1_2
;
WS_ADDRESSING_VERSION
addr_version
=
WS_ADDRESSING_VERSION_1_0
;
HRESULT
hr
;
if
(
!
(
channel
=
alloc_channel
()))
return
E_OUTOFMEMORY
;
prop_set
(
channel
->
prop
,
channel
->
prop_count
,
WS_CHANNEL_PROPERTY_MAX_BUFFERED_MESSAGE_SIZE
,
&
msg_size
,
sizeof
(
msg_size
)
);
prop_set
(
channel
->
prop
,
channel
->
prop_count
,
WS_CHANNEL_PROPERTY_ENVELOPE_VERSION
,
&
env_version
,
sizeof
(
env_version
)
);
prop_set
(
channel
->
prop
,
channel
->
prop_count
,
WS_CHANNEL_PROPERTY_ADDRESSING_VERSION
,
&
addr_version
,
sizeof
(
addr_version
)
);
channel
->
type
=
type
;
channel
->
binding
=
binding
;
...
...
dlls/webservices/tests/channel.c
View file @
0ea201cb
...
...
@@ -28,6 +28,8 @@ static void test_WsCreateChannel(void)
WS_CHANNEL_STATE
state
;
WS_CHANNEL_PROPERTY
prop
;
WS_ENCODING
encoding
;
WS_ENVELOPE_VERSION
env_version
;
WS_ADDRESSING_VERSION
addr_version
;
ULONG
size
;
hr
=
WsCreateChannel
(
WS_CHANNEL_TYPE_REQUEST
,
WS_HTTP_CHANNEL_BINDING
,
NULL
,
0
,
NULL
,
NULL
,
NULL
);
...
...
@@ -48,6 +50,18 @@ static void test_WsCreateChannel(void)
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
encoding
==
WS_ENCODING_XML_UTF8
,
"got %u
\n
"
,
encoding
);
env_version
=
0xdeadbeef
;
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_ENVELOPE_VERSION
,
&
env_version
,
sizeof
(
env_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
env_version
==
WS_ENVELOPE_VERSION_SOAP_1_2
,
"got %u
\n
"
,
env_version
);
addr_version
=
0xdeadbeef
;
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_ADDRESSING_VERSION
,
&
addr_version
,
sizeof
(
addr_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
addr_version
==
WS_ADDRESSING_VERSION_1_0
,
"got %u
\n
"
,
addr_version
);
/* read-only property */
state
=
0xdeadbeef
;
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_STATE
,
&
state
,
sizeof
(
state
),
NULL
);
...
...
@@ -81,6 +95,18 @@ static void test_WsCreateChannel(void)
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_ENCODING
,
&
encoding
,
sizeof
(
encoding
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
encoding
==
WS_ENCODING_XML_BINARY_SESSION_1
,
"got %u
\n
"
,
encoding
);
env_version
=
0xdeadbeef
;
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_ENVELOPE_VERSION
,
&
env_version
,
sizeof
(
env_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
env_version
==
WS_ENVELOPE_VERSION_SOAP_1_2
,
"got %u
\n
"
,
env_version
);
addr_version
=
0xdeadbeef
;
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_ADDRESSING_VERSION
,
&
addr_version
,
sizeof
(
addr_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
addr_version
==
WS_ADDRESSING_VERSION_1_0
,
"got %u
\n
"
,
addr_version
);
WsFreeChannel
(
channel
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment