Comments (5)
BTW, I am using version 0.8.1
from moco.
I found there was a blog http://dreamhead.blogbus.com/tag/moco/, but that's about 'Content-Length' header not returned situation, while in this case, I found the Content-Length was returned, so it seems a different issue, and I have tested even I upgrade to 0.9.1, this issue still there.
BTW, i am using CXF as the webservice client.
from moco.
Could you please inspect your request/response? I need more information for further action.
from moco.
Here is moco server configuration code:
server.post(eq(xpath("//*[local-name()='userId']/text()"), "ema-user-id")).response(
with(pathResource("data/session_login_response.xml")), header("Content-Type", "text/xml"));
Request:
POST /cai3g1.2/services/cai3g1.2/SessionControl?wsdl HTTP/1.1
Content-Type: text/xml; charset=UTF-8
Accept: /
SOAPAction: "CAI3G#Login"
User-Agent: Apache CXF 2.6.0
Cache-Control: no-cache
Pragma: no-cache
Host: localhost:8088
Connection: keep-alive
Content-Length: 267
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><Login xmlns="http://schemas.ericsson.com/cai3g1.2/" xmlns:ns2="http://schemas.ericsson.com/ma/nonSIM/"><userId>ema-user-id</userId><pwd>ema-pwd</pwd></Login></soap:Body></soap:Envelope>
Response:
HTTP/1.1 200 OK
Content-Length: 352
Content-Type: text/xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
.xmlns:cai3="http://schemas.ericsson.com/cai3g1.2/">
<soap:Header/>
<soap:Body>
<cai3:LoginResponse>
<cai3:sessionId>10002</cai3:sessionId>
<cai3:baseSequenceId>123456</cai3:baseSequenceId>
</cai3:LoginResponse>
</soap:Body>
</soap:Envelope>
Please let me know if you need more info.
from moco.
Interesting, if I use soapUI or chrome Dev HTTP Client plugin to send the request (even with the same request header and body), moco server response correctly with keep-alive worked. But if I changed to use the code (webservice client generated by cxf) to send the same request, moco server seems close the connection positively. Any idea?
from moco.
Related Issues (20)
- default if json.req.prop not available HOT 1
- MOCO如何实现带参重定向 HOT 1
- socket请求实现多文件配置
- java.lang.IllegalArgumentException: unknown configuration
- Maven test fails to run moco server when using jacoco maven plugin 0.7.8 or newer #258
- Use URI path parameters on the response template HOT 6
- 返回值类型不支持xml HOT 2
- java.lang.IllegalArgumentException: unknown configuration :[Z@78073c4 HOT 2
- 请求参数中存在中文时,每次请求都报400,怎么进行解决? HOT 1
- 响应体中存在奇数个汉字的时候必定乱码 HOT 5
- 如何支持或的逻辑,以及如何支持对字段名采用正则匹配
- ERROR java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- 请求超过10MB报错,有配置的地方吗 HOT 3
- 返回response json时,template无法使用
- 加载配置文件无法使用*.json HOT 5
- Asynchronous, Duplicate key Accept-Encoding HOT 3
- 希望能支持响应json直接使用模板语法
- The json in the configuration request needs to match all the json in the body in order for the test to pass HOT 2
- 功能请求: 支持Http SSE(Server-Send Events) API 相关mock能力 HOT 1
- Response header 同时配置content-type & content-length, 响应卡住
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moco.